Merge pull request #126 from mdailor/add-windows-10

Added Windows 10 support
This commit is contained in:
Sebastián Katzer
2016-09-23 15:19:45 +02:00
committed by GitHub
4 changed files with 112 additions and 6 deletions

View File

@@ -106,7 +106,7 @@ exports.setDefaults = function (overrides) {
}
}
if (device.platform == 'Android') {
if ((device.platform == 'Android') || (device.platform == 'Windows')){
cordova.exec(null, null, 'BackgroundMode', 'configure', [defaults, false]);
}
};
@@ -121,7 +121,7 @@ exports.setDefaults = function (overrides) {
exports.configure = function (options) {
var settings = this.mergeWithDefaults(options);
if (device.platform == 'Android') {
if ((device.platform == 'Android') || (device.platform == 'Windows')){
cordova.exec(null, null, 'BackgroundMode', 'configure', [settings, true]);
}
};