|
|
@ -4,6 +4,7 @@
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var platform_type = "";
|
|
|
|
|
|
|
|
|
|
|
|
function initCordova() {
|
|
|
|
function initCordova() {
|
|
|
|
// Handle back button to close things
|
|
|
|
// Handle back button to close things
|
|
|
@ -17,9 +18,12 @@ function initCordova() {
|
|
|
|
StatusBar.styleLightContent();
|
|
|
|
StatusBar.styleLightContent();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}, false);
|
|
|
|
}, false);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
platform_type = "cordova";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
function initNW() {
|
|
|
|
function initNW() {
|
|
|
|
|
|
|
|
platform_type = "nw";
|
|
|
|
// TODO: something clever with desktop integration
|
|
|
|
// TODO: something clever with desktop integration
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|