fix error reporting

This commit is contained in:
cloudhead
2010-06-20 14:47:41 -04:00
parent 6dc68c247f
commit 2e8a714c92

View File

@@ -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]);