From 97bac9fadc3a0ad665492a9ba42abb8210a4633b Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Thu, 15 Jun 2017 02:39:34 -0400 Subject: [PATCH] Move start page URL to config --- chrome/content/zotero/zoteroPane.js | 6 +----- resource/config.js | 1 + 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/chrome/content/zotero/zoteroPane.js b/chrome/content/zotero/zoteroPane.js index 088cc462c..a59e9139e 100644 --- a/chrome/content/zotero/zoteroPane.js +++ b/chrome/content/zotero/zoteroPane.js @@ -240,11 +240,7 @@ var ZoteroPane = new function() else if (Zotero.Prefs.get('firstRun2')) { if (Zotero.Schema.dbInitialized || !Zotero.Sync.Server.enabled) { setTimeout(function () { - if(Zotero.isStandalone) { - ZoteroPane_Local.loadURI("https://www.zotero.org/start_standalone"); - } else { - gBrowser.selectedTab = gBrowser.addTab("https://www.zotero.org/start"); - } + ZoteroPane_Local.loadURI(ZOTERO_CONFIG.START_URL); }, 400); } Zotero.Prefs.set('firstRun2', false); diff --git a/resource/config.js b/resource/config.js index 3612855ed..ff8b446cd 100644 --- a/resource/config.js +++ b/resource/config.js @@ -16,6 +16,7 @@ var ZOTERO_CONFIG = { BOOKMARKLET_ORIGIN: 'https://www.zotero.org', HTTP_BOOKMARKLET_ORIGIN: 'http://www.zotero.org', BOOKMARKLET_URL: 'https://www.zotero.org/bookmarklet/', + START_URL: "https://www.zotero.org/start_standalone", PDF_TOOLS_URL: "https://www.zotero.org/download/xpdf/", SUPPORT_URL: "https://www.zotero.org/support/", TROUBLESHOOTING_URL: "https://www.zotero.org/support/getting_help",