diff --git a/src/main/webapp/index.html b/src/main/webapp/index.html
index 80bf841f5460c6158386cfd841a74e4cd056cc5b..f0f5221794a0ac6763d1ec4ca74400ba31bee398 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');