From ccb2f314e3c1a650b23edab547006b54afef6803 Mon Sep 17 00:00:00 2001
From: David Benson <david@jgraph.com>
Date: Fri, 10 May 2019 14:05:27 +0100
Subject: [PATCH] Fixes path to local resources in dev mode

---
 src/main/webapp/index.html | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/main/webapp/index.html b/src/main/webapp/index.html
index 80bf841f5..f0f522179 100644
--- a/src/main/webapp/index.html
+++ b/src/main/webapp/index.html
@@ -308,10 +308,13 @@
 		{
 			// Used to request grapheditor/mxgraph sources in dev mode
 			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:')
 			{
 				mxDevUrl = '../../mxgraph2';
+				drawDevUrl = './';
 				
 				// Forces includes for dev environment in node.js
 				mxForceIncludes = true;
@@ -320,8 +323,7 @@
 			var geBasePath = mxDevUrl + '/javascript/examples/grapheditor/www/js';
 			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(geBasePath + '/Init.js');
-- 
GitLab