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); |
} |
}; |