diff --git a/index.html b/index.html index 64b45b6..a7f2c0d 100644 --- a/index.html +++ b/index.html @@ -47,6 +47,7 @@ <script type="text/javascript" src="js/plugins.js"></script> <script type="text/javascript" src="js/imgur.js"></script> <script type="text/javascript" src="3rdparty/favico-0.3.10.min.js"></script> + <script type="text/javascript" src="cordova.js"></script> </head> <body ng-controller="WeechatCtrl" ng-keydown="handleKeyPress($event)" ng-keyup="handleKeyRelease($event)" ng-keypress="handleKeyPress($event)" ng-class="{'no-overflow': connected}" ng-init="init()" lang="en-US"> <div class="alert alert-danger upload-error" ng-show="uploadError"> diff --git a/js/app.js b/js/app.js deleted file mode 100644 index 8455e56..0000000 --- a/js/app.js +++ /dev/null @@ -1,5 +0,0 @@ -document.addEventListener("deviceready", function () { - if (navigator.splashscreen !== undefined) { - navigator.splashscreen.hide(); - } -}, false); \ No newline at end of file diff --git a/js/glowingbear.js b/js/glowingbear.js index caaed46..0d15ef1 100644 --- a/js/glowingbear.js +++ b/js/glowingbear.js @@ -1,6 +1,12 @@ (function() { 'use strict'; +document.addEventListener("deviceready", function () { + if (navigator.splashscreen !== undefined) { + navigator.splashscreen.hide(); + } +}, false); + var weechat = angular.module('weechat', ['ngRoute', 'localStorage', 'weechatModels', 'bufferResume', 'plugins', 'IrcUtils', 'ngSanitize', 'ngWebsockets', 'ngTouch'], ['$compileProvider', function($compileProvider) { // hacky way to be able to find out if we're in debug mode weechat.compileProvider = $compileProvider;