mirror of
https://github.com/moparisthebest/mail
synced 2024-11-26 02:42:17 -05:00
remove old cordova deps
This commit is contained in:
parent
ada401efa9
commit
3e9eff8085
@ -5,11 +5,14 @@
|
||||
<title>Mail</title>
|
||||
|
||||
<!-- Theses CSP rules are used as a fallback in runtimes such as PhoneGap where setting http headers is not possbile. -->
|
||||
<meta http-equiv="Content-Security-Policy" content="default-src 'self'; object-src 'none'; connect-src 'self' https://keys.whiteout.io; img-src 'self' data:;">
|
||||
<meta http-equiv="Content-Security-Policy" content="default-src 'self'; object-src 'none'; connect-src 'self' https://keys.whiteout.io https://keys-test.whiteout.io;">
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
|
||||
<link rel="stylesheet" media="all" href="css/all.min.css" type="text/css">
|
||||
|
||||
<!-- PhoneGap dependencies -->
|
||||
<script src="phonegap.js"></script>
|
||||
|
||||
<!-- The Scripts -->
|
||||
<script src="lib/require.js"></script>
|
||||
<script src="require-config.js"></script>
|
||||
|
@ -17,7 +17,6 @@ define(function(require) {
|
||||
OutboxBO = require('js/bo/outbox'),
|
||||
PGP = require('js/crypto/pgp'),
|
||||
config = require('js/app-config').config;
|
||||
require('cordova');
|
||||
|
||||
var self = {};
|
||||
|
||||
@ -25,13 +24,15 @@ define(function(require) {
|
||||
* Start the application
|
||||
*/
|
||||
self.start = function(options, callback) {
|
||||
// are we running in native app or in browser?
|
||||
if (document.URL.indexOf("http") === 0 || document.URL.indexOf("app") === 0 || document.URL.indexOf("chrome") === 0) {
|
||||
console.log('Assuming Browser environment...');
|
||||
onDeviceReady();
|
||||
} else {
|
||||
// are we running in a cordova app or in a browser environment?
|
||||
if (window.cordova) {
|
||||
// wait for 'deviceready' event to make sure plugins are loaded
|
||||
console.log('Assuming Cordova environment...');
|
||||
document.addEventListener("deviceready", onDeviceReady, false);
|
||||
} else {
|
||||
// No need to wait on events... just start the app
|
||||
console.log('Assuming Browser environment...');
|
||||
onDeviceReady();
|
||||
}
|
||||
|
||||
function onDeviceReady() {
|
||||
|
6083
src/lib/cordova/cordova-2.5.0.js
vendored
6083
src/lib/cordova/cordova-2.5.0.js
vendored
File diff suppressed because it is too large
Load Diff
6
src/lib/moment/moment.min.js
vendored
6
src/lib/moment/moment.min.js
vendored
File diff suppressed because one or more lines are too long
@ -10,7 +10,6 @@
|
||||
cryptoLib: '../js/crypto',
|
||||
'setimmediate': 'setImmediate',
|
||||
underscore: 'underscore/underscore-min',
|
||||
cordova: 'cordova/cordova-2.5.0',
|
||||
lawnchair: 'lawnchair/lawnchair-git',
|
||||
lawnchairSQL: 'lawnchair/lawnchair-adapter-webkit-sqlite-git',
|
||||
lawnchairIDB: 'lawnchair/lawnchair-adapter-indexed-db-git',
|
||||
@ -18,7 +17,6 @@
|
||||
angular: 'angular/angular.min',
|
||||
angularRoute: 'angular/angular-route.min',
|
||||
angularTouch: 'angular/angular-touch.min',
|
||||
moment: 'moment/moment.min',
|
||||
uuid: 'uuid/uuid',
|
||||
openpgp: 'openpgp/openpgp.min',
|
||||
iscroll: 'iscroll/iscroll-min'
|
||||
|
Loading…
Reference in New Issue
Block a user