Skip to content

Commit

Permalink
Merge pull request #150 from eduardomozart/patch-1
Browse files Browse the repository at this point in the history
Fix undefined error
  • Loading branch information
Klap-in authored Nov 12, 2024
2 parents ec6414a + 3585c7a commit 850b9d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion script.js
Original file line number Diff line number Diff line change
Expand Up @@ -727,7 +727,7 @@ let BookManager = {

jQuery(function () {
//Tools for selecting a page
if(JSINFO.bookcreator.areToolsVisible) {
if(typeof JSINFO.bookcreator !== "undefined" && JSINFO.bookcreator.areToolsVisible) {
Bookcreator.init();
Bookcreator.setupUpdateObserver();

Expand Down

0 comments on commit 850b9d8

Please sign in to comment.