From 2dd54fddf406e34e9373a8239db6ca45d2a8bc6b 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 0912cf8d6f..4e96ee17bf 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, } -}; +});