Skip to content

Commit

Permalink
(dist) hot-fix 1.1.5
Browse files Browse the repository at this point in the history
  • Loading branch information
cloudhead committed Nov 23, 2011
1 parent 40601f8 commit bf73ee7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions dist/less-1.1.5.js
Expand Up @@ -145,7 +145,7 @@ if (typeof environment === "object" && ({}).toString.call(environment) === "[obj
// Node.js
less = exports,
tree = require('./tree');
less.mode = 'rhino';
less.mode = 'node';
} else {
// Browser
if (typeof(window.less) === 'undefined') { window.less = {} }
Expand Down Expand Up @@ -2348,7 +2348,7 @@ tree.URL = function (val, paths) {
this.attrs = val;
} else {
// Add the base path if the URL is relative and we are in the browser
if (!/^(?:https?:\/\/|file:\/\/|data:)?/.test(val.value) && paths.length > 0 && typeof(window) !== 'undefined') {
if (less.mode === 'browser' && !/^(?:https?:\/\/|file:\/\/|data:|\/)/.test(val.value) && paths.length > 0) {
val.value = paths[0] + (val.value.charAt(0) === '/' ? val.value.slice(1) : val.value);
}
this.value = val;
Expand Down

0 comments on commit bf73ee7

Please sign in to comment.