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

Unified Diff: lib/utils.js

Issue 10585038: First-run page (revisited) (Closed)
Patch Set: Created May 27, 2013, 4:31 p.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
« chrome/skin/firstRun.css ('K') | « lib/ui.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/utils.js
===================================================================
--- a/lib/utils.js
+++ b/lib/utils.js
@@ -447,6 +447,16 @@
if (context && !context.isNull())
Utils.crypto.VFY_DestroyContext(context, true);
}
+ },
+
+ /**
+ * Returns the documentation link from the preferences.
+ */
+ getDocLink: function(/**String*/ linkID)
+ {
+ let {Prefs} = require("prefs");
+ let docLink = Prefs.documentation_link;
+ return docLink.replace(/%LINK%/g, linkID).replace(/%LANG%/g, Utils.appLocale);
}
};
« chrome/skin/firstRun.css ('K') | « lib/ui.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld