fix ENCODING_ERR for applicationDirectory
This closes #193
diff --git a/src/windows/FileProxy.js b/src/windows/FileProxy.js
index c342a56..64ee1df 100644
--- a/src/windows/FileProxy.js
+++ b/src/windows/FileProxy.js
@@ -200,6 +200,12 @@
nativeURL: 'ms-appdata:///temp',
winpath: nativePathToCordova(Windows.Storage.ApplicationData.current.temporaryFolder.path)
})),
+ 'application':
+ Object.freeze(new WinFS('application', {
+ name: 'application',
+ nativeURL: 'ms-appx:///',
+ winpath: nativePathToCordova(Windows.ApplicationModel.Package.current.installedLocation.path)
+ })),
'root':
Object.freeze(new WinFS('root', {
name: 'root',
@@ -249,7 +255,7 @@
}
}
- ['file://','ms-appdata:///','cdvfile://localhost/'].every(function(p) {
+ ['file://','ms-appdata:///','ms-appx://','cdvfile://localhost/'].every(function(p) {
if (path.indexOf(p)!==0)
return true;
var thirdSlash = path.indexOf("/", p.length);