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: Send request on demand, always link for release builds, falling back to releases overview Created Feb. 5, 2016, 2:09 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') | no next file with comments »
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")
+ 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') | no next file with comments »

Powered by Google App Engine
This is Rietveld