From 597fa051833ca3df6eb185c0143ff82e02dacba1 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Tue, 26 Sep 2017 01:35:13 +0200 Subject: push plugin ugh --- .../plugins/phonegap-plugin-push/hooks/windows/setToastCapable.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'StoneIsland/plugins/phonegap-plugin-push/hooks/windows/setToastCapable.js') 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) { -- cgit v1.2.3-70-g09d2