mirror of
https://github.com/less/less.js.git
synced 2026-04-09 03:00:20 -04:00
fix error reporting
This commit is contained in:
@@ -123,7 +123,7 @@ function createCSS(styles, sheet, lastModified) {
|
||||
var css;
|
||||
|
||||
// Strip the query-string
|
||||
var href = sheet.href.replace(/\?.*$/, '');
|
||||
var href = sheet.href ? sheet.href.replace(/\?.*$/, '') : '';
|
||||
|
||||
// If there is no title set, use the filename, minus the extension
|
||||
var id = 'less:' + (sheet.title || href.match(/(?:^|\/)([-\w]+)\.[a-z]+$/i)[1]);
|
||||
|
||||
Reference in New Issue
Block a user