diff --git a/_static/demos/circuits_as_fourier_series/sketch.js b/_static/demos/circuits_as_fourier_series/sketch.js index bf2b69f1d8..d019008577 100644 --- a/_static/demos/circuits_as_fourier_series/sketch.js +++ b/_static/demos/circuits_as_fourier_series/sketch.js @@ -1,10 +1,10 @@ -var url_prefix = '/_static/demos/circuits_as_fourier_series/src/'; +var url_prefix = '../../_static/demos/circuits_as_fourier_series/src/'; -// fetch(url_prefix + 'fourier0-1.png', {method: 'HEAD'}).then(res => { -// if (!res.ok) { -// url_prefix = '../_static/demos/circuits_as_fourier_series/src/'; -// } -// }); + fetch(url_prefix + 'fourier0-1.png', {method: 'HEAD'}).then(res => { + if (!res.ok) { + url_prefix = '../_static/demos/circuits_as_fourier_series/src/'; + } + }); ///// Sketch 0