Skip to content

Commit b7ffb24

Browse files
committed
Move last settings to gui.mjs
1 parent d460bd5 commit b7ffb24

File tree

2 files changed

+3
-11
lines changed

2 files changed

+3
-11
lines changed

modules/core.mjs

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1615,17 +1615,6 @@ function _ensureJSROOT() {
16151615
}).then(() => globalThis.JSROOT);
16161616
}
16171617

1618-
/** @summary Initialize JSROOT
1619-
* @desc Called when main JSRoot.core.js script is loaded.
1620-
* @private */
1621-
if (source_fullpath) {
1622-
1623-
let d = decodeUrl(source_fullpath);
1624-
1625-
if (d.has('wrong_http_response') || decodeUrl().has('wrong_http_response'))
1626-
settings.HandleWrongHttpResponse = true; // server may send wrong content length by partial requests, use other method to control this
1627-
}
1628-
16291618

16301619
export {
16311620
version_id,

modules/gui.mjs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ function readStyleFromURL(url) {
1818
}
1919
}
2020

21+
if (d.has('wrong_http_response'))
22+
settings.HandleWrongHttpResponse = true;
23+
2124
let inter = d.get("interactive");
2225
if (inter === "nomenu")
2326
settings.ContextMenu = false;

0 commit comments

Comments
 (0)