mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-24 16:55:36 +03:00
cleanup eventPage, small optimizations and stricter rules for msp send callbacks
This commit is contained in:
parent
719b47ab48
commit
437fbe2cd0
2 changed files with 7 additions and 9 deletions
|
@ -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();
|
||||
}
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue