diff options
author | cTn <ctndesigner@gmail.com> | 2014-10-07 19:40:52 +0400 |
---|---|---|
committer | cTn <ctndesigner@gmail.com> | 2014-10-07 19:40:52 +0400 |
commit | 437fbe2cd065ef0b4ef3530097c19103dfae5e99 (patch) | |
tree | 4dd92a611c2538b7bb92c1996810a5ef7770ad30 /eventPage.js | |
parent | 719b47ab489ea1939f88a640f3e0a62e9f244c31 (diff) |
cleanup eventPage, small optimizations and stricter rules for msp send callbacks
Diffstat (limited to 'eventPage.js')
-rw-r--r-- | eventPage.js | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/eventPage.js b/eventPage.js index cc8643af..6dcba9ca 100644 --- a/eventPage.js +++ b/eventPage.js @@ -12,7 +12,7 @@ */ 'use strict'; -function start_app() { +function startApplication() { var applicationStartTime = new Date().getTime(); chrome.app.window.create('main.html', { @@ -73,9 +73,7 @@ function start_app() { }); } -chrome.app.runtime.onLaunched.addListener(function () { - start_app(); -}); +chrome.app.runtime.onLaunched.addListener(startApplication); chrome.runtime.onInstalled.addListener(function (details) { if (details.reason == 'update') { @@ -107,6 +105,6 @@ chrome.runtime.onInstalled.addListener(function (details) { chrome.notifications.onButtonClicked.addListener(function (notificationId, buttonIndex) { if (notificationId == 'baseflight_update') { - start_app(); + startApplication(); } });
\ No newline at end of file |