webogram-i2p/app/js/background.js

21 lines
656 B
JavaScript
Raw Normal View History

2014-01-05 16:07:11 +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
*/
chrome.app.runtime.onLaunched.addListener(function (launchData) {
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', {
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
},
minWidth: 320,
2014-02-02 19:15:56 +00:00
minHeight: 400,
frame: isWindows ? { color: '#5682a3' } : 'chrome'
})
})