From 5e8f460f55d2931ccd04686c69b6dcc87d6d6969 Mon Sep 17 00:00:00 2001 From: Brett Zamir Date: Mon, 28 May 2018 21:59:39 +0800 Subject: [PATCH] - Fix (Extensions): Use "extIconsPath` for now given that `extPath` will not work relative to `dist` --- editor/extensions/ext-mathjax.js | 2 +- editor/extensions/ext-shapes.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/editor/extensions/ext-mathjax.js b/editor/extensions/ext-mathjax.js index c40e5260..c914eb6a 100644 --- a/editor/extensions/ext-mathjax.js +++ b/editor/extensions/ext-mathjax.js @@ -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 () { diff --git a/editor/extensions/ext-shapes.js b/editor/extensions/ext-shapes.js index 2aaf8f9f..20a67423 100644 --- a/editor/extensions/ext-shapes.js +++ b/editor/extensions/ext-shapes.js @@ -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,