2014-01-05 16:07:11 +00:00
|
|
|
/*!
|
2017-07-05 08:57:23 +00:00
|
|
|
* Webogram v0.5.7.1 - messaging web application for MTProto
|
2014-01-05 16:07:11 +00:00
|
|
|
* https://github.com/zhukov/webogram
|
|
|
|
* Copyright (C) 2014 Igor Zhukov <igor.beatle@gmail.com>
|
|
|
|
* https://github.com/zhukov/webogram/blob/master/LICENSE
|
|
|
|
*/
|
|
|
|
|
2016-06-28 16:40:53 +00:00
|
|
|
chrome.app.runtime.onLaunched.addListener(function (launchData) {
|
2017-07-31 16:00:40 +00:00
|
|
|
var isWindows = typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.match(/windows/i) ? true : false
|
2014-01-05 16:07:11 +00:00
|
|
|
chrome.app.window.create('../index.html', {
|
2016-06-28 16:40:53 +00:00
|
|
|
id: 'webogram-chat',
|
2014-10-01 11:13:50 +00:00
|
|
|
innerBounds: {
|
2014-05-08 20:06:08 +00:00
|
|
|
width: 1000,
|
2014-01-05 16:07:11 +00:00
|
|
|
height: 700
|
|
|
|
},
|
2014-02-10 17:25:21 +00:00
|
|
|
minWidth: 320,
|
2014-02-02 19:15:56 +00:00
|
|
|
minHeight: 400,
|
2017-07-31 16:00:40 +00:00
|
|
|
frame: isWindows ? { color: '#5682a3' } : 'chrome'
|
2016-06-28 16:40:53 +00:00
|
|
|
})
|
|
|
|
})
|