diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2017-09-26 01:35:13 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2017-09-26 01:35:13 +0200 |
| commit | 597fa051833ca3df6eb185c0143ff82e02dacba1 (patch) | |
| tree | cb25347477c57f82e955b054b70f4bb5359fb0d2 /StoneIsland/plugins/phonegap-plugin-push/hooks/windows/setToastCapable.js | |
| parent | 6a9186aea6b85beef28e3eb765fbf2322a1c7890 (diff) | |
push plugin ugh
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) { |
