mirror of
https://github.com/less/less.js.git
synced 2026-05-01 03:00:22 -04:00
fix timestamps not being compared properly, when loading a .less
This commit is contained in:
@@ -15,8 +15,8 @@ for (var i = 0; i < sheets.length; i++) {
|
||||
var styles = css && JSON.parse(css);
|
||||
|
||||
xhr(sheet.href, function (data, lastModified) {
|
||||
if (styles && (new(Date)(lastModified).value ===
|
||||
new(Date)(styles.timestamp).value)) {
|
||||
if (styles && (new(Date)(lastModified).valueOf() ===
|
||||
new(Date)(styles.timestamp).valueOf())) {
|
||||
// Use local copy
|
||||
createCSS(styles.css, sheet);
|
||||
log("less: loading " + sheet.href + " from local storage.");
|
||||
|
||||
Reference in New Issue
Block a user