mirror of
https://github.com/less/less.js.git
synced 2026-04-09 03:00:20 -04:00
don't crash if there's no 'lastModified' header
This commit is contained in:
@@ -125,7 +125,7 @@ function loadStyleSheet(sheet, callback, reload, remaining) {
|
||||
}
|
||||
|
||||
xhr(sheet.href, sheet.type, function (data, lastModified) {
|
||||
if (!reload && styles &&
|
||||
if (!reload && styles && lastModified &&
|
||||
(new(Date)(lastModified).valueOf() ===
|
||||
new(Date)(styles.timestamp).valueOf())) {
|
||||
// Use local copy
|
||||
|
||||
Reference in New Issue
Block a user