- Fix (Extensions): Use "extIconsPath` for now given that `extPath` will not work relative to `dist`

master
Brett Zamir 2018-05-28 21:59:39 +08:00
parent 54d6fd41b6
commit 5e8f460f55
2 changed files with 2 additions and 2 deletions

View File

@ -179,7 +179,7 @@ svgEditor.addExtension('mathjax', function () {
s.src = curConfig.extPath + mathjaxSrcSecure;
// See `executeAfterLoads` in `svgutils.js`
*/
$.getScript(mathjaxSrcSecure)
$.getScript(svgEditor.curConfig.extIconsPath + mathjaxSrcSecure)
.done(function (script, textStatus) {
// When MathJax is loaded get the div where the math will be rendered.
MathJax.Hub.queue.Push(function () {

View File

@ -118,7 +118,7 @@ svgEditor.addExtension('shapes', function () {
if (!lib) {
$('#shape_buttons').html('Loading...');
$.getJSON(svgEditor.curConfig.extPath + 'shapelib/' + catId + '.json', function (result) {
$.getJSON(svgEditor.curConfig.extIconsPath + 'shapelib/' + catId + '.json', function (result) {
curLib = library[catId] = {
data: result.data,
size: result.size,