Prevent singlefile config from overwriting the Zotero.SingleFile namespace

This commit is contained in:
Adomas Venčkauskas 2022-08-11 13:44:48 +03:00
parent c90f8415b3
commit 2dd54fddf4

View file

@ -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,
}
};
});