Open quickstart window on first run in Standalone
This commit is contained in:
parent
e7c05c6406
commit
dd29d18b93
2 changed files with 7 additions and 3 deletions
|
@ -45,7 +45,7 @@
|
|||
onload="window.sizeToContent()"
|
||||
windowtype="zotero:basicViewer"
|
||||
title="&brandShortName;"
|
||||
width="900" height="500"
|
||||
width="1000" height="500"
|
||||
persist="screenX screenY width height sizemode">
|
||||
<script type="application/javascript" src="chrome://global/content/globalOverlay.js"/>
|
||||
<script type="application/javascript" src="chrome://global/content/contentAreaUtils.js"/>
|
||||
|
|
|
@ -224,11 +224,15 @@ var ZoteroPane = new function()
|
|||
// -- this way the page won't be displayed when they sync their DB to
|
||||
// another profile or if the DB is initialized erroneously (e.g. while
|
||||
// switching data directory locations)
|
||||
else if (Zotero.Prefs.get('firstRun2') && !Zotero.isStandalone) {
|
||||
else if (Zotero.Prefs.get('firstRun2')) {
|
||||
if (Zotero.Schema.dbInitialized || !Zotero.Sync.Server.enabled) {
|
||||
setTimeout(function () {
|
||||
var url = "http://zotero.org/start";
|
||||
gBrowser.selectedTab = gBrowser.addTab(url);
|
||||
if(Zotero.isStandalone) {
|
||||
ZoteroStandalone.openInViewer("http://zotero.org/start");
|
||||
} else {
|
||||
gBrowser.selectedTab = gBrowser.addTab(url);
|
||||
}
|
||||
}, 400);
|
||||
}
|
||||
Zotero.Prefs.set('firstRun2', false);
|
||||
|
|
Loading…
Reference in a new issue