File tree Expand file tree Collapse file tree 2 files changed +3
-11
lines changed Expand file tree Collapse file tree 2 files changed +3
-11
lines changed Original file line number Diff line number Diff 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
16301619export {
16311620version_id ,
Original file line number Diff line number Diff 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 ;
You can’t perform that action at this time.
0 commit comments