Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: html/static/js/ieFirstRun.js

Issue 11276031: FRP wrappers. "Update" menu item. (Closed)
Patch Set: Created Aug. 1, 2013, 2:29 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
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);

Powered by Google App Engine
This is Rietveld