Skip to content
Permalink
Browse files
fix ENCODING_ERR for applicationDirectory
 This closes #193
  • Loading branch information
Reon90 authored and vladimir-kotikov committed Nov 7, 2016
1 parent 7ae74f5 commit f4c2c94c2da58e87aa3e2a47aad9e1076945555e
Showing 1 changed file with 7 additions and 1 deletion.
@@ -200,6 +200,12 @@ function getAllFS() {
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 @@ function pathFromURL(url) {
}
}

['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);

0 comments on commit f4c2c94

Please sign in to comment.