diff --git a/tools/textgenerator/node_modules/generate_morphhb.js b/tools/textgenerator/node_modules/generate_morphhb.js index 4d32596e2..7bb02dfd3 100644 --- a/tools/textgenerator/node_modules/generate_morphhb.js +++ b/tools/textgenerator/node_modules/generate_morphhb.js @@ -1,7 +1,7 @@ var fs = require('fs'), path = require('path'), jsdom = require("jsdom"), - $ = require('jquery')(jsdom.jsdom().createWindow()), + $ = require('jquery')(jsdom.jsdom().parentWindow), bibleData = require('bible_data'), bibleFormatter = require('bible_formatter'), verseIndexer = require('verse_indexer'); diff --git a/tools/textgenerator/node_modules/generate_osis.js b/tools/textgenerator/node_modules/generate_osis.js index 0dd8a3103..207d18128 100644 --- a/tools/textgenerator/node_modules/generate_osis.js +++ b/tools/textgenerator/node_modules/generate_osis.js @@ -4,7 +4,7 @@ var fs = require('fs'), bibleFormatter = require('bible_formatter'), verseIndexer = require('verse_indexer'), jsdom = require("jsdom"), - $ = require('jquery')(jsdom.jsdom().createWindow()); + $ = require('jquery')(jsdom.jsdom().parentWindow); unparsedTags = []; diff --git a/tools/textgenerator/node_modules/generate_usfm.js b/tools/textgenerator/node_modules/generate_usfm.js index 018a9e669..18fae418d 100644 --- a/tools/textgenerator/node_modules/generate_usfm.js +++ b/tools/textgenerator/node_modules/generate_usfm.js @@ -6,7 +6,7 @@ var fs = require('fs'), readline = require('readline'); stream = require('stream'), jsdom = require("jsdom"), -$ = require('jquery')(jsdom.jsdom().createWindow()), +$ = require('jquery')(jsdom.jsdom().defaultView), verseIndexer = require('verse_indexer'); function generate(inputBasePath, info, createIndex, startProgress, updateProgress) {