We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 83f7d10 + 869be2c commit a6c0fd2Copy full SHA for a6c0fd2
background.js
@@ -7,9 +7,18 @@ function startApplication() {
7
innerBounds : {
8
'width' : 1340,
9
'height' : 920
10
- },
11
- icon: 'images/bf_icon_128.png'
+ }
+ }, function (createdWindow) {
12
+ if (getChromeVersion() >= 54) {
13
+ createdWindow.icon = 'images/bf_icon_128.png';
14
15
});
16
}
17
18
+function getChromeVersion () {
19
+ var raw = navigator.userAgent.match(/Chrom(e|ium)\/([0-9]+)\./);
20
+
21
+ return raw ? parseInt(raw[2], 10) : false;
22
+}
23
24
chrome.app.runtime.onLaunched.addListener(startApplication);
0 commit comments