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-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 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
174 }); | 174 }); |
175 } | 175 } |
176 else if (message.what == "doclink") | 176 else if (message.what == "doclink") |
177 callback(Utils.getDocLink(message.link)); | 177 callback(Utils.getDocLink(message.link)); |
178 else if (message.what == "localeInfo") | 178 else if (message.what == "localeInfo") |
179 { | 179 { |
180 var bidiDir; | 180 var bidiDir; |
181 if ("chromeRegistry" in Utils) | 181 if ("chromeRegistry" in Utils) |
182 bidiDir = Utils.chromeRegistry.isLocaleRTL("adblockplus") ? "rtl" :
"ltr"; | 182 bidiDir = Utils.chromeRegistry.isLocaleRTL("adblockplus") ? "rtl" :
"ltr"; |
183 else | 183 else |
184 bidiDir = ext.i18n.getMessage("@@bidi_dir"); | 184 bidiDir = Utils.readingDirection; |
185 | 185 |
186 callback({locale: Utils.appLocale, bidiDir: bidiDir}); | 186 callback({locale: Utils.appLocale, bidiDir: bidiDir}); |
187 } | 187 } |
188 else if (message.what == "features") | 188 else if (message.what == "features") |
189 { | 189 { |
190 callback({ | 190 callback({ |
191 devToolsPanel: info.platform == "chromium", | 191 devToolsPanel: info.platform == "chromium", |
192 safariContentBlocker: "safari" in global | 192 safariContentBlocker: "safari" in global |
193 && "extension" in global.safari | 193 && "extension" in global.safari |
194 && "setContentBlocker" in global.safari.extension | 194 && "setContentBlocker" in global.safari.extension |
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
402 for (var i = 0; i < subscriptions.length; i++) | 402 for (var i = 0; i < subscriptions.length; i++) |
403 { | 403 { |
404 var subscription = subscriptions[i]; | 404 var subscription = subscriptions[i]; |
405 if (subscription instanceof DownloadableSubscription) | 405 if (subscription instanceof DownloadableSubscription) |
406 Synchronizer.execute(subscription, true); | 406 Synchronizer.execute(subscription, true); |
407 } | 407 } |
408 break; | 408 break; |
409 } | 409 } |
410 }); | 410 }); |
411 })(this); | 411 })(this); |
OLD | NEW |