Skip to content

Commit a94f71d

Browse files
committed
bugfix
1 parent d419393 commit a94f71d

2 files changed

Lines changed: 1 addition & 2 deletions

File tree

docs/javascripts/altium-loader.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
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);

docs/javascripts/mathjax.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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

0 commit comments

Comments
 (0)