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-2016 Eyeo GmbH | 3 * Copyright (C) 2006-2016 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 747 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
758 | 758 |
759 ext.pages.open(optionsUrl, callback); | 759 ext.pages.open(optionsUrl, callback); |
760 }; | 760 }; |
761 | 761 |
762 /* Windows */ | 762 /* Windows */ |
763 ext.windows = { | 763 ext.windows = { |
764 // Safari doesn't provide as rich a windows API as Chrome does, so instead | 764 // Safari doesn't provide as rich a windows API as Chrome does, so instead |
765 // of chrome.windows.create we have to fall back to just opening a new tab. | 765 // of chrome.windows.create we have to fall back to just opening a new tab. |
766 create: function(createData, callback) | 766 create: function(createData, callback) |
767 { | 767 { |
768 if (createData) | 768 ext.pages.open(createData.url, callback); |
Sebastian Noack
2016/02/17 20:44:06
I'd simply assume that createData is given and has
kzar
2016/02/17 20:52:21
Done.
| |
769 ext.pages.open(createData.url, callback); | |
770 } | 769 } |
771 }; | 770 }; |
772 })(); | 771 })(); |
LEFT | RIGHT |