don't crash if there's no 'lastModified' header
This commit is contained in:
parent
c58d8aa156
commit
868130e3a3
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user