From b7660260b2c119db89fd8554e0966a5a58074e2e Mon Sep 17 00:00:00 2001 From: Philipp von Weitershausen Date: Fri, 18 Mar 2011 17:58:53 -0700 Subject: [PATCH] 'window' isn't available as a global variable anymore, use sharePanel.window. --- extensions/firefox-share/src/modules/panel.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/extensions/firefox-share/src/modules/panel.js b/extensions/firefox-share/src/modules/panel.js index 09323da..be64d44 100644 --- a/extensions/firefox-share/src/modules/panel.js +++ b/extensions/firefox-share/src/modules/panel.js @@ -655,7 +655,7 @@ sharePanel.prototype = { callback: function () { let nb = self.gBrowser.getNotificationBox(); nb.removeNotification(nb.getNotificationWithValue("mozilla-f1-share-error")); - window.setTimeout(function () { + self.window.setTimeout(function () { ffshare.togglePanel(); }, 0); } @@ -677,7 +677,7 @@ sharePanel.prototype = { // Only a final successful share should be passing this value if (success) { button.setAttribute("status", SHARE_STATUS[SHARE_FINISHED]); - window.setTimeout(function () { + this.window.setTimeout(function () { button.setAttribute("status", SHARE_STATUS[status]); }, 2900); } else {