From 00faf6dc9ce1fcd7231be74d10e1c294f965fea7 Mon Sep 17 00:00:00 2001 From: Fabian Jakobs Date: Thu, 11 Aug 2011 14:21:04 +0200 Subject: [PATCH] another worker loader tweak --- lib/ace/worker/worker_client.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ace/worker/worker_client.js b/lib/ace/worker/worker_client.js index 947ae2e7..525e8add 100644 --- a/lib/ace/worker/worker_client.js +++ b/lib/ace/worker/worker_client.js @@ -104,7 +104,7 @@ var WorkerClient = function(topLevelNamespaces, packagedJs, module, classname) { this.$normalizePath = function(path) { if (!path.match(/^\w+:/)) - path = location.protocol + "//" + location.host + location.pathname.replace(/\/.*?$/, "/") + "/" + path.replace(/^\//, ""); + path = location.protocol + "//" + location.host + location.pathname.replace(/\/.*?$/, "") + "/" + path.replace(/^\//, ""); return path; };