File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1111 script . id = SCRIPT_ID ;
1212 script . src = SCRIPT_SRC ;
1313 script . async = true ;
14- script . crossOrigin = 'anonymous' ;
1514 script . onload = ( ) => resolve ( ) ;
1615 script . onerror = ( ) => reject ( new Error ( 'Failed to load Altium viewer script.' ) ) ;
1716 document . head . appendChild ( script ) ;
Original file line number Diff line number Diff line change 11( function ( ) {
22 const MATHJAX_SRC = 'https://cdnjs.cloudflare.com/ajax/libs/mathjax/3.2.2/es5/tex-mml-chtml.js' ;
3- const PANGU_SRC = ( typeof document !== 'undefined' ) ? new URL ( 'javascripts/pangu.min.js' , document . baseURI ) . href : '/javascripts/pangu.min.js' ;
3+ const PANGU_SRC = ( typeof window !== 'undefined' ) ? new URL ( '/ javascripts/pangu.min.js' , window . location . origin ) . href : '/javascripts/pangu.min.js' ;
44 const pendingScripts = new Map ( ) ;
55 let mathjaxReady ;
66
You can’t perform that action at this time.
0 commit comments