From 8d807b73c6f163f82c5aa5b7a5917c5977d5d404 Mon Sep 17 00:00:00 2001 From: Simon Kornblith Date: Wed, 30 Apr 2014 14:00:56 -0400 Subject: [PATCH] Fix display of missing data directory startup error in Standalone --- chrome/content/zotero/xpcom/zotero.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/chrome/content/zotero/xpcom/zotero.js b/chrome/content/zotero/xpcom/zotero.js index 66d87d224a..650da8e534 100644 --- a/chrome/content/zotero/xpcom/zotero.js +++ b/chrome/content/zotero/xpcom/zotero.js @@ -330,16 +330,12 @@ Components.utils.import("resource://gre/modules/Services.jsm"); if (e.name == 'NS_ERROR_FILE_NOT_FOUND') { Zotero.startupError = Zotero.getString('dataDir.notFound'); _startupErrorHandler = function() { - var wm = Components.classes["@mozilla.org/appshell/window-mediator;1"] - .getService(Components.interfaces.nsIWindowMediator); - var win = wm.getMostRecentWindow('navigator:browser'); - var ps = Components.classes["@mozilla.org/embedcomp/prompt-service;1"]. createInstance(Components.interfaces.nsIPromptService); var buttonFlags = (ps.BUTTON_POS_0) * (ps.BUTTON_TITLE_OK) + (ps.BUTTON_POS_1) * (ps.BUTTON_TITLE_IS_STRING) + (ps.BUTTON_POS_2) * (ps.BUTTON_TITLE_IS_STRING); - var index = ps.confirmEx(win, + var index = ps.confirmEx(null, Zotero.getString('general.error'), Zotero.startupError + '\n\n' + Zotero.getString('dataDir.previousDir') + ' '