mirror of
https://github.com/less/less.js.git
synced 2026-01-23 06:07:56 -05:00
(dist) build updates
This commit is contained in:
7
dist/less-1.1.0.js
vendored
7
dist/less-1.1.0.js
vendored
@@ -2329,6 +2329,7 @@ require('less/tree').find = function (obj, fun) {
|
||||
|
||||
var isFileProtocol = (location.protocol === 'file:' ||
|
||||
location.protocol === 'chrome:' ||
|
||||
location.protocol === 'chrome-extension:' ||
|
||||
location.protocol === 'resource:');
|
||||
|
||||
less.env = less.env || (location.hostname == '127.0.0.1' ||
|
||||
@@ -2447,7 +2448,11 @@ function loadStyleSheet(sheet, callback, reload, remaining) {
|
||||
|
||||
// Stylesheets in IE don't always return the full path
|
||||
if (! /^(https?|file):/.test(href)) {
|
||||
href = url.slice(0, url.lastIndexOf('/') + 1) + href;
|
||||
if (href.charAt(0) == "/") {
|
||||
href = window.location.protocol + "//" + window.location.host + href;
|
||||
} else {
|
||||
href = url.slice(0, url.lastIndexOf('/') + 1) + href;
|
||||
}
|
||||
}
|
||||
|
||||
xhr(sheet.href, sheet.type, function (data, lastModified) {
|
||||
|
||||
16
dist/less-1.1.0.min.js
vendored
Normal file
16
dist/less-1.1.0.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user