Left: | ||
Right: |
LEFT | RIGHT |
---|---|
1 /* | 1 /* |
2 * This file is part of Adblock Plus <https://adblockplus.org/>, | 2 * This file is part of Adblock Plus <https://adblockplus.org/>, |
3 * Copyright (C) 2006-2017 eyeo GmbH | 3 * Copyright (C) 2006-2017 eyeo GmbH |
4 * | 4 * |
5 * Adblock Plus is free software: you can redistribute it and/or modify | 5 * Adblock Plus is free software: you can redistribute it and/or modify |
6 * it under the terms of the GNU General Public License version 3 as | 6 * it under the terms of the GNU General Public License version 3 as |
7 * published by the Free Software Foundation. | 7 * published by the Free Software Foundation. |
8 * | 8 * |
9 * Adblock Plus is distributed in the hope that it will be useful, | 9 * Adblock Plus is distributed in the hope that it will be useful, |
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
61 { | 61 { |
62 this._delete(page.id); | 62 this._delete(page.id); |
63 } | 63 } |
64 }; | 64 }; |
65 | 65 |
66 ext._removeFromAllPageMaps = pageId => | 66 ext._removeFromAllPageMaps = pageId => |
67 { | 67 { |
68 for (let pageMapId in nonEmptyPageMaps) | 68 for (let pageMapId in nonEmptyPageMaps) |
69 nonEmptyPageMaps[pageMapId]._delete(pageId); | 69 nonEmptyPageMaps[pageMapId]._delete(pageId); |
70 }; | 70 }; |
71 }()); | 71 |
72 | |
73 (function() | |
Sebastian Noack
2017/04/05 11:05:49
No need to create a new IFEE. Just add the code to
Jon Sonesen
2017/04/05 11:39:00
Done.
| |
74 { | |
75 /* Pages */ | 72 /* Pages */ |
76 | 73 |
77 let Page = ext.Page = function(tab) | 74 let Page = ext.Page = function(tab) |
78 { | 75 { |
79 this.id = tab.id; | 76 this.id = tab.id; |
80 this._url = tab.url && new URL(tab.url); | 77 this._url = tab.url && new URL(tab.url); |
81 | 78 |
82 this.browserAction = new BrowserAction(tab.id); | 79 this.browserAction = new BrowserAction(tab.id); |
83 this.contextMenus = new ContextMenus(this); | 80 this.contextMenus = new ContextMenus(this); |
84 }; | 81 }; |
(...skipping 642 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
727 ext.windows = { | 724 ext.windows = { |
728 create(createData, callback) | 725 create(createData, callback) |
729 { | 726 { |
730 chrome.windows.create(createData, createdWindow => | 727 chrome.windows.create(createData, createdWindow => |
731 { | 728 { |
732 afterTabLoaded(callback)(createdWindow.tabs[0]); | 729 afterTabLoaded(callback)(createdWindow.tabs[0]); |
733 }); | 730 }); |
734 } | 731 } |
735 }; | 732 }; |
736 }()); | 733 }()); |
LEFT | RIGHT |