parent
117dbe1fe0
commit
76b7fd0dc1
1 changed files with 4 additions and 2 deletions
|
@ -535,11 +535,13 @@ ZoteroCommandLineHandler.prototype = {
|
||||||
|
|
||||||
if(isStandalone()) {
|
if(isStandalone()) {
|
||||||
var fileToOpen;
|
var fileToOpen;
|
||||||
// Special handler for "zotero" URIs at the command line to prevent them from opening a new window
|
// Handle zotero:// and file URIs and prevent them from opening a new window
|
||||||
var param = cmdLine.handleFlagWithParam("url", false);
|
var param = cmdLine.handleFlagWithParam("url", false);
|
||||||
if (param) {
|
if (param) {
|
||||||
|
cmdLine.preventDefault = true;
|
||||||
|
|
||||||
var uri = cmdLine.resolveURI(param);
|
var uri = cmdLine.resolveURI(param);
|
||||||
if(uri.schemeIs("zotero")) {
|
if (uri.schemeIs("zotero")) {
|
||||||
addInitCallback(function (Zotero) {
|
addInitCallback(function (Zotero) {
|
||||||
Zotero.uiReadyPromise
|
Zotero.uiReadyPromise
|
||||||
.then(function () {
|
.then(function () {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue