Skip to content

Commit

Permalink
Add support for absolute paths
Browse files Browse the repository at this point in the history
  • Loading branch information
Infocatcher committed Jul 23, 2014
1 parent 1c32d51 commit 9065176
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion openRelativeFile.js
Expand Up @@ -133,7 +133,10 @@ function openRelativeFile() {
if(fso.FileExists(tmp))
path = tmp;
else {
if(/^(chrome|resource):\/\//.test(relPath)) {
tmp = wsh.ExpandEnvironmentStrings(relPath);
if(fso.FileExists(tmp))
path = tmp;
if(!path && /^(chrome|resource):\/\//.test(relPath)) {
tmp = parseChromePath(curDir, relPath);
if(tmp)
path = tmp;
Expand Down

0 comments on commit 9065176

Please sign in to comment.