mirror of
https://github.com/less/less.js.git
synced 2026-01-22 21:58:14 -05:00
(minor) ws
This commit is contained in:
@@ -124,7 +124,7 @@ function loadStyleSheet(sheet, callback, reload, remaining) {
|
||||
// Stylesheets in IE don't always return the full path
|
||||
if (! /^(https?|file):/.test(href)) {
|
||||
if (href.charAt(0) == "/") {
|
||||
href = window.location.protocol + "//" + window.location.host + href;
|
||||
href = window.location.protocol + "//" + window.location.host + href;
|
||||
} else {
|
||||
href = url.slice(0, url.lastIndexOf('/') + 1) + href;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user