mirror of
https://github.com/kkapsner/CanvasBlocker
synced 2025-07-04 12:36:37 +02:00
Version 0.2.0
Reenabled notifications Code cleanup.
This commit is contained in:
parent
97e0c6b9cd
commit
c10b382c93
7 changed files with 106 additions and 83 deletions
|
@ -18,11 +18,9 @@ exports.notify = function(window, callingStackMsg){
|
|||
var domain = contentURL.hostname;
|
||||
var message = _("fakedReadout").replace(/\{url\}/g, domain);
|
||||
|
||||
// var tab = tabUtils.getTabForId(worker.tab.id);
|
||||
// var tabBrowser = tabUtils.getTabBrowserForTab(tab);
|
||||
// var browser = tabUtils.getBrowserForTab(tab);
|
||||
var tabBrowser = tabUtils.getTabBrowser(window);
|
||||
var browser = windowUtils.getOwnerBrowserWindow(window);
|
||||
var tab = tabUtils.getTabForContentWindow(window);
|
||||
var tabBrowser = tabUtils.getTabBrowserForTab(tab);
|
||||
var browser = tabUtils.getBrowserForTab(tab);
|
||||
|
||||
var notifyBox = tabBrowser.getNotificationBox(browser);
|
||||
var notification = notifyBox.getNotificationWithValue("fake-readout");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue