mirror of
https://github.com/less/less.js.git
synced 2026-05-01 03:00:22 -04:00
Fix url import. Fixes #2089.
This commit is contained in:
@@ -75,7 +75,11 @@ Import.prototype.getPath = function () {
|
||||
return null;
|
||||
};
|
||||
Import.prototype.evalForImport = function (env) {
|
||||
return new(Import)(this.path.eval(env), this.features, this.options, this.index, this.currentFileInfo);
|
||||
var path = this.path;
|
||||
if (path instanceof URL) {
|
||||
path = path.value;
|
||||
}
|
||||
return new(Import)(path.eval(env), this.features, this.options, this.index, this.currentFileInfo);
|
||||
};
|
||||
Import.prototype.evalPath = function (env) {
|
||||
var path = this.path.eval(env);
|
||||
|
||||
Reference in New Issue
Block a user