From 8b7c0433e8f99f9ae7d7d6bae3a678494eda3fe6 Mon Sep 17 00:00:00 2001 From: Abe Jellinek Date: Thu, 4 Jan 2024 13:46:04 -0800 Subject: [PATCH] Preferences: Fix missing LABD icon when path contains a space --- chrome/content/zotero/preferences/preferences_advanced.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chrome/content/zotero/preferences/preferences_advanced.js b/chrome/content/zotero/preferences/preferences_advanced.js index 512b656dc5..24e00410ca 100644 --- a/chrome/content/zotero/preferences/preferences_advanced.js +++ b/chrome/content/zotero/preferences/preferences_advanced.js @@ -818,7 +818,7 @@ Zotero_Preferences.Attachment_Base_Directory = { var path = Zotero.Prefs.get('baseAttachmentPath'); Components.utils.import("resource://gre/modules/osfile.jsm"); if (await OS.File.exists(path)) { - filefield.style.backgroundImage = 'url(moz-icon://file://' + path + '?size=16)'; + filefield.style.backgroundImage = 'url(moz-icon://' + Zotero.File.pathToFileURI(path) + '?size=16)'; filefield.value = path; } else {