Skip to content

Commit d736d7d

Browse files
authored
Merge pull request #339 from coryw/master
Open files without editor
2 parents 34a53ac + ebe2248 commit d736d7d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

public/js/script.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -327,8 +327,8 @@ function useFile(file_url) {
327327
window.close();
328328
}
329329
} else {
330-
// No WYSIWYG editor found, use custom method.
331-
window.opener.SetUrl(url, file_path);
330+
// No editor found, open/download file using browser's default method
331+
window.open(url);
332332
}
333333
}
334334
//end useFile

0 commit comments

Comments
 (0)