diff options
Diffstat (limited to 'StoneIsland/plugins/phonegap-plugin-push/hooks/windows/setToastCapable.js')
| -rw-r--r-- | StoneIsland/plugins/phonegap-plugin-push/hooks/windows/setToastCapable.js | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/StoneIsland/plugins/phonegap-plugin-push/hooks/windows/setToastCapable.js b/StoneIsland/plugins/phonegap-plugin-push/hooks/windows/setToastCapable.js index b8cbcbc0..5b784582 100644 --- a/StoneIsland/plugins/phonegap-plugin-push/hooks/windows/setToastCapable.js +++ b/StoneIsland/plugins/phonegap-plugin-push/hooks/windows/setToastCapable.js @@ -1,7 +1,13 @@ module.exports = function(context) { - console.log('Updating appxmanifests with ToastCapable=true...'); + console.log('Updating appxmanifests with ToastCapable=true ...'); var path = require('path'); + var fs = require('fs'); + var platformProjPath = path.join(context.opts.projectRoot, 'platforms/windows'); + if (!fs.existsSync(platformProjPath)) { + platformProjPath = context.opts.projectRoot; + } + var AppxManifest = require(path.join(platformProjPath, 'cordova/lib/AppxManifest')); ['package.phone.appxmanifest', 'package.windows.appxmanifest'].forEach(function(manifestPath) { |
