Skip to content
Snippets Groups Projects
Commit ccb2f314 authored by David Benson's avatar David Benson
Browse files

Fixes path to local resources in dev mode

parent f65287d0
No related branches found
No related tags found
No related merge requests found
...@@ -308,10 +308,13 @@ ...@@ -308,10 +308,13 @@
{ {
// Used to request grapheditor/mxgraph sources in dev mode // Used to request grapheditor/mxgraph sources in dev mode
var mxDevUrl = document.location.protocol + '//devhost.jgraph.com/mxgraph2'; var mxDevUrl = document.location.protocol + '//devhost.jgraph.com/mxgraph2';
// Used to request draw.io sources in dev mode
var drawDevUrl = document.location.protocol + '//devhost.jgraph.com/drawio/src/main/webapp/';
if (document.location.protocol == 'file:') if (document.location.protocol == 'file:')
{ {
mxDevUrl = '../../mxgraph2'; mxDevUrl = '../../mxgraph2';
drawDevUrl = './';
// Forces includes for dev environment in node.js // Forces includes for dev environment in node.js
mxForceIncludes = true; mxForceIncludes = true;
...@@ -320,8 +323,7 @@ ...@@ -320,8 +323,7 @@
var geBasePath = mxDevUrl + '/javascript/examples/grapheditor/www/js'; var geBasePath = mxDevUrl + '/javascript/examples/grapheditor/www/js';
var mxBasePath = mxDevUrl + '/javascript/src'; var mxBasePath = mxDevUrl + '/javascript/src';
// Used to request draw.io sources in dev mode
var drawDevUrl = document.location.protocol + '//devhost.jgraph.com/drawio/src/main/webapp/';
mxscript(drawDevUrl + 'js/diagramly/Init.js'); mxscript(drawDevUrl + 'js/diagramly/Init.js');
mxscript(geBasePath + '/Init.js'); mxscript(geBasePath + '/Init.js');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment