Reverted chrome frame for Linux users

Closes #1452
This commit is contained in:
Igor Zhukov 2017-07-31 19:00:40 +03:00
parent a5b165ff50
commit 9ce6996f39

View File

@ -6,6 +6,7 @@
*/
chrome.app.runtime.onLaunched.addListener(function (launchData) {
var isWindows = typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.match(/windows/i) ? true : false
chrome.app.window.create('../index.html', {
id: 'webogram-chat',
innerBounds: {
@ -14,6 +15,6 @@ chrome.app.runtime.onLaunched.addListener(function (launchData) {
},
minWidth: 320,
minHeight: 400,
frame: { color: "#5682a3" }
frame: isWindows ? { color: '#5682a3' } : 'chrome'
})
})