-
-
Notifications
You must be signed in to change notification settings - Fork 896
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed opening of links in an external app.
- Loading branch information
Showing
6 changed files
with
118 additions
and
120 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
/* | ||
If an id is also specified and a window with a matching id has been shown before, the remembered bounds of the window will be used instead. | ||
*/ | ||
'use strict'; | ||
|
||
function startApplication() { | ||
chrome.app.window.create('main.html', { | ||
id: 'main-window', | ||
frame: 'chrome', | ||
innerBounds: { | ||
minWidth: 1024, | ||
minHeight: 550, | ||
}, | ||
}, function (createdWindow) { | ||
if (getChromeVersion() >= 54) { | ||
createdWindow.icon = 'images/bf_icon_128.png'; | ||
} | ||
}); | ||
} | ||
|
||
chrome.app.runtime.onLaunched.addListener(startApplication); | ||
|
||
function getChromeVersion () { | ||
const raw = navigator.userAgent.match(/Chrom(e|ium)\/([0-9]+)\./); | ||
|
||
return raw ? parseInt(raw[2], 10) : false; | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.