| Index: templates/geckoInfo.js.tmpl |
| =================================================================== |
| --- a/templates/geckoInfo.js.tmpl |
| +++ b/templates/geckoInfo.js.tmpl |
| @@ -15,17 +15,17 @@ |
| let match = /\brv:(\d+(?:\.\d+)?)\b/.exec(navigator.userAgent); |
| if (match) |
| exports.platformVersion = match[1]; |
| // Firefox 50 does not support runtime.getBrowserInfo |
| if ("getBrowserInfo" in browser.runtime) |
| { |
| - browser.runtime.getBrowserInfo().then(browserInfo => |
| + browser.runtime.getBrowserInfo(browserInfo => |
|
Sebastian Noack
2017/10/10 23:12:19
This shouldn't be necessary. I think, we should no
Manish Jethani
2017/10/11 11:33:27
Done.
|
| { |
| exports.application = browserInfo.name.toLowerCase(); |
| exports.applicationVersion = browserInfo.version; |
| }); |
| } |
| else |
| { |
| let browserInfo = /\bFirefox\/(\S+)/.exec(navigator.userAgent); |