Skip to content

Commit 1ba5e1e

Browse files
committed
Merge pull request less#1278 from losnir/master
Better fix for local path (cross-platform)
2 parents e75bc55 + ef6f912 commit 1ba5e1e

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)