From dae61d79f1d74080dc5cb01ed241e7b74232d513 Mon Sep 17 00:00:00 2001 From: nightwing Date: Tue, 16 Aug 2011 21:53:53 +0500 Subject: [PATCH] yet 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 525e8add..f024b274 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; };