mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 797667 - Add back the SocialToolbar.button getter. r=markh
--HG-- extra : rebase_source : 0b6627797e3f5d46e5e94c8dcfd5d9dceaebe257
This commit is contained in:
parent
bf74ef16e1
commit
6912360516
@ -535,11 +535,15 @@ let SocialShareButton = {
|
||||
var SocialToolbar = {
|
||||
// Called once, after window load, when the Social.provider object is initialized
|
||||
init: function SocialToolbar_init() {
|
||||
document.getElementById("social-provider-button").setAttribute("image", Social.provider.iconURL);
|
||||
this.button.setAttribute("image", Social.provider.iconURL);
|
||||
this.updateButton();
|
||||
this.updateProfile();
|
||||
},
|
||||
|
||||
get button() {
|
||||
return document.getElementById("social-provider-button");
|
||||
},
|
||||
|
||||
updateButtonHiddenState: function SocialToolbar_updateButtonHiddenState() {
|
||||
let tbi = document.getElementById("social-toolbar-item");
|
||||
tbi.hidden = !Social.uiVisible;
|
||||
|
Loading…
Reference in New Issue
Block a user