Skip to content

Commit

Permalink
fix: decode URI result of getExplorerPath
Browse files Browse the repository at this point in the history
  • Loading branch information
khanhas committed Nov 1, 2018
1 parent 0e91871 commit ab3eaa3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion native-util/native-util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ export class NativeUtil {
}

public getExplorerPath(): string {
let rawPath: string = this.instance.getExplorerPath();
let rawPath: string = decodeURI(this.instance.getExplorerPath());

if (rawPath) {
rawPath = rawPath.replace("file:///", "").replace(/\//g, "\\") + "\\";
}
Expand Down

0 comments on commit ab3eaa3

Please sign in to comment.