Open quickstart window on first run in Standalone
This commit is contained in:
parent
e7c05c6406
commit
dd29d18b93
|
@ -45,7 +45,7 @@
|
||||||
onload="window.sizeToContent()"
|
onload="window.sizeToContent()"
|
||||||
windowtype="zotero:basicViewer"
|
windowtype="zotero:basicViewer"
|
||||||
title="&brandShortName;"
|
title="&brandShortName;"
|
||||||
width="900" height="500"
|
width="1000" height="500"
|
||||||
persist="screenX screenY width height sizemode">
|
persist="screenX screenY width height sizemode">
|
||||||
<script type="application/javascript" src="chrome://global/content/globalOverlay.js"/>
|
<script type="application/javascript" src="chrome://global/content/globalOverlay.js"/>
|
||||||
<script type="application/javascript" src="chrome://global/content/contentAreaUtils.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
|
// -- 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
|
// another profile or if the DB is initialized erroneously (e.g. while
|
||||||
// switching data directory locations)
|
// 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) {
|
if (Zotero.Schema.dbInitialized || !Zotero.Sync.Server.enabled) {
|
||||||
setTimeout(function () {
|
setTimeout(function () {
|
||||||
var url = "http://zotero.org/start";
|
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);
|
}, 400);
|
||||||
}
|
}
|
||||||
Zotero.Prefs.set('firstRun2', false);
|
Zotero.Prefs.set('firstRun2', false);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user