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

Unified Diff: messageResponder.js

Issue 29335794: Proof-of-concept: Link version to corresponding announcement (Closed)
Patch Set: Always send request, no link if no release post found Created Feb. 5, 2016, 1:44 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
« no previous file with comments | « no previous file | options.html » ('j') | options.js » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: messageResponder.js
===================================================================
--- a/messageResponder.js
+++ b/messageResponder.js
@@ -165,9 +165,13 @@
callback({locale: Utils.appLocale, bidiDir: bidiDir});
}
- else if (message.what == "addonVersion")
Thomas Greiner 2016/02/05 14:24:36 Nice. I wanted to make this more generic in the fu
+ else if (message.what == "info")
{
- callback(require("info").addonVersion);
+ var info = require("info");
+ callback({
+ application: info.application,
+ addonVersion: info.addonVersion
+ });
}
else
callback(null);
« no previous file with comments | « no previous file | options.html » ('j') | options.js » ('J')

Powered by Google App Engine
This is Rietveld