| Index: html/static/js/ieFirstRun.js |
| =================================================================== |
| new file mode 100644 |
| --- /dev/null |
| +++ b/html/static/js/ieFirstRun.js |
| @@ -0,0 +1,52 @@ |
| +var AdblockPlus = { |
| + require: function(param) |
| + { |
| + if (param == "prefs") |
| + { |
| + return { |
| + Prefs: |
| + { |
| + documentation_link: "" |
| + } |
| + } |
| + } |
| + if (param == "utils") |
| + { |
| + return { |
| + Utils: |
| + { |
| + appLocale: "" |
| + } |
| + } |
| + } |
| + if (param == "filterClasses") |
| + { |
| + return { |
| + Filter: |
| + { |
| + fromText: function(param) |
| + { |
| + return { |
| + matches: function(param) { |
| + return true; |
| + } |
| + } |
| + } |
| + } |
| + } |
| + } |
| + return {}; |
| + } |
| +} |
| + |
| +function initWrappers() |
| +{ |
| + AdblockPlus.getMessage = function(section, param) |
| + { |
| + return Settings.GetMessage(section, param); |
| + } |
| + Prefs.documentation_link = Settings.GetDocumentationLink(); |
| + Utils.appLocale = Settings.GetAppLocale(); |
|
Wladimir Palant
2013/08/13 09:19:51
This seems to assume that the result of require("p
|
| +} |
| + |
| +window.addEventListener("load", initWrappers, false); |