CB-7695 Fix InAppBrowser injectScriptFile for Windows 8.1 / Windows Phone 8.1

Changed injects' paths to include parent folder
Used getFileFromApplicationUriAsync
This commit is contained in:
daserge
2014-10-15 03:07:15 +04:00
committed by sgrebnov
parent d2eaa089f8
commit 71b43d39a4
2 changed files with 21 additions and 9 deletions
+5 -2
View File
@@ -19,6 +19,9 @@
*
*/
var cordova = require('cordova');
var isWindows = cordova.platformId == 'windows';
window.alert = window.alert || navigator.notification.alert;
exports.defineManualTests = function (contentEl, createActionButton) {
@@ -306,8 +309,8 @@ exports.defineManualTests = function (contentEl, createActionButton) {
var localhtml = basePath + 'local.html',
localpdf = basePath + 'local.pdf',
injecthtml = basePath + 'inject.html',
injectjs = 'inject.js',
injectcss = 'inject.css',
injectjs = isWindows ? basePath + 'inject.js' : 'inject.js',
injectcss = isWindows ? basePath + 'inject.css' : 'inject.css',
videohtml = basePath + 'video.html';
//Local