Skip to content

Commit

Permalink
Pale Moon 28.8+ compatibility update
Browse files Browse the repository at this point in the history
  • Loading branch information
JustOff committed Nov 9, 2019
1 parent 495ea11 commit 32f438c
Showing 1 changed file with 15 additions and 12 deletions.
27 changes: 15 additions & 12 deletions modules/Status.jsm
Original file line number Diff line number Diff line change
Expand Up @@ -145,20 +145,23 @@ S4EStatusService.prototype =
this._window.XULBrowserWindow.watch(prop, XULBWPropHandler);
}, this);

let XULBWHandler = function(prop, oldval, newval) {
if(!newval)
{
if (this._window.watch) { // See https://github.com/JustOff/L4E/issues/1
let XULBWHandler = function(prop, oldval, newval) {
if(!newval)
{
return newval;
}
CU.reportError("XULBrowserWindow changed. Updating S4E bindings.");
this._window.setTimeout(function(self)
{
self.buildBinding();
}, 0, this);
return newval;
}
CU.reportError("XULBrowserWindow changed. Updating S4E bindings.");
this._window.setTimeout(function(self)
{
self.buildBinding();
}, 0, this);
return newval;
};
};

this._window.watch("XULBrowserWindow", XULBWHandler);
}

this._window.watch("XULBrowserWindow", XULBWHandler);
},

destroy: function()
Expand Down

0 comments on commit 32f438c

Please sign in to comment.