Skip to content

Commit 487d655

Browse files
committed
Fix use of options to jsdom calls. (Is this changed from jsdom 1.0.2, or was it never right?)
1 parent cb689f5 commit 487d655

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

bin/page2mml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ mjAPI.start();
8484
// Process an HTML file:
8585
//
8686
function processHTML(html,callback) {
87-
var document = jsdom(html,null,{features:{FetchExternalResources: false}});
87+
var document = jsdom(html,{features:{FetchExternalResources: false}});
8888
var xmlns = getXMLNS(document);
8989
mjAPI.typeset({
9090
html:document.body.innerHTML,

bin/page2png

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ if (argv.dpi === 0) {argv.dpi = argv.ex * 16} // pixels properly sized
9898
// Process an HTML file:
9999
//
100100
function processHTML(html,callback) {
101-
var document = jsdom(html,null,{features:{FetchExternalResources: false}});
101+
var document = jsdom(html,{features:{FetchExternalResources: false}});
102102
var xmlns = getXMLNS(document);
103103
mjAPI.typeset({
104104
html: document.body.innerHTML,

bin/page2svg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ mjAPI.start();
100100
// Process an HTML file:
101101
//
102102
function processHTML(html,callback) {
103-
var document = jsdom(html,null,{features:{FetchExternalResources: false}});
103+
var document = jsdom(html,{features:{FetchExternalResources: false}});
104104
var xmlns = getXMLNS(document);
105105
mjAPI.typeset({
106106
html: document.body.innerHTML,

0 commit comments

Comments
 (0)