Skip to content

Commit

Permalink
Don't use hardcoded static url.
Browse files Browse the repository at this point in the history
  • Loading branch information
rtibbles committed Aug 30, 2021
1 parent f145037 commit 163e97b
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@
import JSZip from 'jszip';
import client from 'kolibri.client';
import urls from 'kolibri.urls';
import responsiveWindowMixin from 'kolibri.coreVue.mixins.responsiveWindowMixin';
import scriptLoader from 'kolibri.utils.scriptLoader';
import CoreInfoIcon from 'kolibri.coreVue.components.CoreInfoIcon';
Expand All @@ -116,7 +117,7 @@
// because MathJax isn't compatible with webpack, we are loading it this way.
const mathJaxConfigFileName = require('../constants').ConfigFileName;
// the config is fragile, Khan may change it and we need to update the following hardcoded path.
const mathJaxUrl = `/static/mathjax/2.1/MathJax.js?config=${mathJaxConfigFileName}`;
const mathJaxUrl = urls.static(`mathjax/2.1/MathJax.js?config=${mathJaxConfigFileName}`);
const mathJaxPromise = scriptLoader(mathJaxUrl);
Expand Down

0 comments on commit 163e97b

Please sign in to comment.