diff --git a/app/js/background.js b/app/js/background.js index dad25228..d9f27da7 100644 --- a/app/js/background.js +++ b/app/js/background.js @@ -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' }) })