Skip to content

Commit ef6f912

Browse files
committed
Fix for local paths with Unix / Windows Support
Second try at fixing issue less#1272, now with added Unix support.
1 parent bd31c7a commit ef6f912

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/less/browser.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ function extractUrlParts(url, baseUrl) {
214214
if (!baseUrlParts) {
215215
throw new Error("Could not parse page url - '"+baseUrl+"'");
216216
}
217-
urlParts[1] = baseUrlParts[1] || "";
217+
urlParts[1] = urlParts[1] || baseUrlParts[1] || "";
218218
if (!urlParts[2]) {
219219
urlParts[3] = baseUrlParts[3] + urlParts[3];
220220
}

0 commit comments

Comments
 (0)