mirror of
https://bitbucket.org/TheBosZ/cordova-plugin-run-in-background
synced 2024-11-22 07:14:54 +00:00
parent
99dac5b396
commit
1c289f7d01
@ -28,8 +28,11 @@ document.addEventListener('backbutton', function () {}, false);
|
|||||||
|
|
||||||
// Called before 'deviceready' listener will be called
|
// Called before 'deviceready' listener will be called
|
||||||
channel.onCordovaReady.subscribe(function () {
|
channel.onCordovaReady.subscribe(function () {
|
||||||
// Set the default settings
|
// Device plugin is ready now
|
||||||
exports.configure();
|
channel.onCordovaInfoReady.subscribe( function () {
|
||||||
|
// Set the defaults
|
||||||
|
exports.configure();
|
||||||
|
});
|
||||||
|
|
||||||
// Only enable WP8 by default
|
// Only enable WP8 by default
|
||||||
if (['WinCE', 'Win32NT'].indexOf(device.platform) > -1) {
|
if (['WinCE', 'Win32NT'].indexOf(device.platform) > -1) {
|
||||||
|
Loading…
Reference in New Issue
Block a user