mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1259729 fix attaching pocket styles on startup, r=jaws a=lizzard
MozReview-Commit-ID: 3guFW0BVhwO
This commit is contained in:
parent
ca2461ef88
commit
73163ab74e
10
browser/extensions/pocket/bootstrap.js
vendored
10
browser/extensions/pocket/bootstrap.js
vendored
@ -381,12 +381,8 @@ var PocketOverlay = {
|
||||
CreatePocketWidget(reason);
|
||||
PocketContextMenu.init();
|
||||
|
||||
if (reason != APP_STARTUP) {
|
||||
for (let win of allBrowserWindows()) {
|
||||
this.setWindowScripts(win);
|
||||
this.addStyles(win);
|
||||
this.updateWindow(win);
|
||||
}
|
||||
for (let win of allBrowserWindows()) {
|
||||
this.onWindowOpened(win);
|
||||
}
|
||||
},
|
||||
shutdown: function(reason) {
|
||||
@ -412,6 +408,8 @@ var PocketOverlay = {
|
||||
PocketReader.shutdown();
|
||||
},
|
||||
onWindowOpened: function(window) {
|
||||
if (window.hasOwnProperty("pktUI"))
|
||||
return;
|
||||
this.setWindowScripts(window);
|
||||
this.addStyles(window);
|
||||
this.updateWindow(window);
|
||||
|
Loading…
Reference in New Issue
Block a user