- Fix (Extensions): Use "extIconsPath for now given that extPath will not work relative to dist`
This commit is contained in:
@@ -179,7 +179,7 @@ svgEditor.addExtension('mathjax', function () {
|
|||||||
s.src = curConfig.extPath + mathjaxSrcSecure;
|
s.src = curConfig.extPath + mathjaxSrcSecure;
|
||||||
// See `executeAfterLoads` in `svgutils.js`
|
// See `executeAfterLoads` in `svgutils.js`
|
||||||
*/
|
*/
|
||||||
$.getScript(mathjaxSrcSecure)
|
$.getScript(svgEditor.curConfig.extIconsPath + mathjaxSrcSecure)
|
||||||
.done(function (script, textStatus) {
|
.done(function (script, textStatus) {
|
||||||
// When MathJax is loaded get the div where the math will be rendered.
|
// When MathJax is loaded get the div where the math will be rendered.
|
||||||
MathJax.Hub.queue.Push(function () {
|
MathJax.Hub.queue.Push(function () {
|
||||||
|
|||||||
@@ -118,7 +118,7 @@ svgEditor.addExtension('shapes', function () {
|
|||||||
|
|
||||||
if (!lib) {
|
if (!lib) {
|
||||||
$('#shape_buttons').html('Loading...');
|
$('#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] = {
|
curLib = library[catId] = {
|
||||||
data: result.data,
|
data: result.data,
|
||||||
size: result.size,
|
size: result.size,
|
||||||
|
|||||||
Reference in New Issue
Block a user