From 864fd03c8771d17c342859de34fc09565f665b00 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adomas=20Ven=C4=8Dkauskas?= Date: Thu, 11 Aug 2022 13:44:48 +0300 Subject: [PATCH] Prevent singlefile config from overwriting the Zotero.SingleFile namespace --- chrome/content/zotero/xpcom/singlefile.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/chrome/content/zotero/xpcom/singlefile.js b/chrome/content/zotero/xpcom/singlefile.js index f0eeb52554..4036a5600c 100644 --- a/chrome/content/zotero/xpcom/singlefile.js +++ b/chrome/content/zotero/xpcom/singlefile.js @@ -23,7 +23,7 @@ ***** END LICENSE BLOCK ***** */ -Zotero.SingleFile = { +Zotero.SingleFile = Object.assign(Zotero.SingleFile || {}, { // These are defaults from SingleFile // Located in: zotero/resources/SingleFile/extension/core/bg/config.js CONFIG: { @@ -95,4 +95,4 @@ Zotero.SingleFile = { insertSingleFileComment: true, blockMixedContent: false, } -}; +});