diff --git a/chrome/content/zotero/tools/build_typeSchemaData.js b/chrome/content/zotero/tools/build_typeSchemaData.js index 86f1ce0fbd..ffcaaf73a7 100644 --- a/chrome/content/zotero/tools/build_typeSchemaData.js +++ b/chrome/content/zotero/tools/build_typeSchemaData.js @@ -80,7 +80,7 @@ var { FilePicker } = ChromeUtils.importESModule('chrome://zotero/content/modules schemaFile.append("zoteroTypeSchemaData.js"); await Zotero.File.putContentsAsync( schemaFile, - `var ZOTERO_TYPE_SCHEMA = ${JSON.stringify(schema)};\n\n` + `var ZOTERO_TYPE_SCHEMA = ${JSON.stringify(schema, null, '\t')};\n\n` + "if (typeof module !== 'undefined') {\n\tmodule.exports = ZOTERO_TYPE_SCHEMA;\n}\n" ); resultElem.innerHTML = `
Wrote ${schemaFile.path} successfully.
`;