Skip to content

Commit

Permalink
Fix not loading error
Browse files Browse the repository at this point in the history
  • Loading branch information
RoadToDream committed Sep 12, 2023
1 parent fe2b7b1 commit d55305e
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 3 deletions.
2 changes: 2 additions & 0 deletions src/bootstrap.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ async function startup({ id, version, rootURI }) {
// Load chrome/content file directly via file:/// URL
Services.scriptloader.loadSubScript(rootURI + 'chrome/content/utilities.js');
Services.scriptloader.loadSubScript(rootURI + 'chrome/content/threadpool.js');
Services.scriptloader.loadSubScript(rootURI + 'chrome/content/journal.js');
Services.scriptloader.loadSubScript(rootURI + 'chrome/content/book.js');
Services.scriptloader.loadSubScript(rootURI + 'chrome/content/zotmeta.js');
ZotMeta.init({ id, version, rootURI });
ZotMeta.addToAllWindows();
Expand Down
2 changes: 1 addition & 1 deletion src/chrome/content/book.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ZotMeta.Journal = {
Book = {
generateAuthors (author) {
var newAuthorList = [];
if (author) {
Expand Down
2 changes: 1 addition & 1 deletion src/chrome/content/journal.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ZotMeta.Journal = {
Journal = {
generateAuthors (author) {
var newAuthorList = [];
if (author) {
Expand Down
2 changes: 2 additions & 0 deletions src/chrome/content/overlay.xul
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,7 @@
<script src="overlay.js"/>
<script src="threadpool.js"/>
<script src="utilities.js"/>
<script src="journal.js"/>
<script src="book.js"/>
<script src="zotmeta.js"/>
</overlay>
2 changes: 1 addition & 1 deletion src/chrome/content/zotmeta.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ ZotMeta = {
menuitem.setAttribute('type', 'button');
menuitem.setAttribute('data-l10n-id', 'update-metadata');
menuitem.addEventListener('command', () => {
ZotMeta.Journal.updateSelectedItemsMetadata();
Journal.updateSelectedItemsMetadata();
});
doc.getElementById('zotero-itemmenu').appendChild(menuitem);
this.storeAddedElement(menuitem);
Expand Down

0 comments on commit d55305e

Please sign in to comment.