mirror of
https://github.com/zotero/zotero.git
synced 2026-09-07 08:26:14 +00:00
Merge pull request #1017 from jlegewie/patch-1
Allow string path as argument to Zotero.launchFile()
This commit is contained in:
commit
26b161fce2
1 changed files with 1 additions and 0 deletions
|
|
@ -1223,6 +1223,7 @@ Components.utils.import("resource://gre/modules/osfile.jsm");
|
|||
* Launch a file, the best way we can
|
||||
*/
|
||||
this.launchFile = function (file) {
|
||||
file = Zotero.File.pathToFile(file);
|
||||
try {
|
||||
file.launch();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue