Index: messageResponder.js |
=================================================================== |
--- a/messageResponder.js |
+++ b/messageResponder.js |
@@ -156,7 +156,16 @@ |
} |
if (message.what == "doclink") |
- return Utils.getDocLink(message.link); |
+ { |
+ let {application, platform} = info; |
Sebastian Noack
2017/09/25 21:03:22
Nit: I personally wouldn't assign "platform" to a
saroyanm
2017/09/25 21:21:45
Done.
|
+ if (platform == "chromium" && application != "opera") |
+ application = "chrome"; |
+ else if (platform == "gecko") |
+ application = "firefox"; |
+ |
+ let link = message.link.replace("{application}", application); |
+ return Utils.getDocLink(link); |
Sebastian Noack
2017/09/25 21:03:22
Nit: Why a temporary variable, and not just return
saroyanm
2017/09/25 21:17:33
Exceeded 80 char limit.
saroyanm
2017/09/25 21:28:00
Done.
|
+ } |
if (message.what == "localeInfo") |
{ |