| Index: ext/background.js |
| =================================================================== |
| --- a/ext/background.js |
| +++ b/ext/background.js |
| @@ -99,32 +99,16 @@ |
| sendMessage(message, responseCallback) |
| { |
| browser.tabs.sendMessage(this.id, message, responseCallback); |
| } |
| }; |
| ext.getPage = id => new Page({id: parseInt(id, 10)}); |
| - function afterTabLoaded(callback) |
| - { |
| - return openedTab => |
| - { |
| - let onUpdated = (tabId, changeInfo, tab) => |
| - { |
| - if (tabId == openedTab.id && changeInfo.status == "complete") |
| - { |
| - browser.tabs.onUpdated.removeListener(onUpdated); |
| - callback(new Page(openedTab)); |
| - } |
| - }; |
| - browser.tabs.onUpdated.addListener(onUpdated); |
| - }; |
| - } |
| - |
| ext.pages = { |
| onLoading: new ext._EventTarget(), |
| onActivated: new ext._EventTarget(), |
| onRemoved: new ext._EventTarget() |
| }; |
| browser.tabs.onUpdated.addListener((tabId, changeInfo, tab) => |
| { |