| Left: | ||
| Right: |
| OLD | NEW |
|---|---|
| 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-present eyeo GmbH | 3 * Copyright (C) 2006-present 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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 71 if (index >= 0) | 71 if (index >= 0) |
| 72 { | 72 { |
| 73 this._keys.splice(index, 1); | 73 this._keys.splice(index, 1); |
| 74 this._values.splice(index, 1); | 74 this._values.splice(index, 1); |
| 75 } | 75 } |
| 76 } | 76 } |
| 77 }; | 77 }; |
| 78 | 78 |
| 79 window.ext.PageMap = PageMap; | 79 window.ext.PageMap = PageMap; |
| 80 | 80 |
| 81 window.ext.showOptions = function(callback) | |
| 82 { | |
| 83 if (!/\/(?:mobile-)?options\.html/.test(top.location.href)) | |
|
Manish Jethani
2017/10/04 21:15:33
In the new version I've removed the "mobile-" part
Thomas Greiner
2017/10/05 11:58:16
We're only using options.html as the top page insi
Manish Jethani
2017/10/05 12:09:25
Ah, I see.
Made the change.
Thomas Greiner
2017/10/05 12:25:54
Thanks.
| |
| 84 window.open("options.html", "_blank"); | |
| 85 | |
| 86 if (callback) | |
| 87 callback(); | |
| 88 }; | |
| 89 | |
| 90 window.ext.devtools = { | 81 window.ext.devtools = { |
| 91 onCreated: { | 82 onCreated: { |
| 92 addListener(listener) | 83 addListener(listener) |
| 93 { | 84 { |
| 94 window.addEventListener("message", (event) => | 85 window.addEventListener("message", (event) => |
| 95 { | 86 { |
| 96 if (event.data.type == "devtools") | 87 if (event.data.type == "devtools") |
| 97 listener(new ext.Page(event.source)); | 88 listener(new ext.Page(event.source)); |
| 98 }); | 89 }); |
| 99 } | 90 } |
| 100 } | 91 } |
| 101 }; | 92 }; |
| 102 }()); | 93 }()); |
| OLD | NEW |