fix generated stylesheet title
This commit is contained in:
parent
4c27e0a9bb
commit
7a36ffd877
@ -79,7 +79,7 @@ function createCSS(styles, sheet, lastModified) {
|
|||||||
css.title = 'less-sheet';
|
css.title = 'less-sheet';
|
||||||
|
|
||||||
if (sheet) {
|
if (sheet) {
|
||||||
css.title = sheet.title || sheet.href.match(/(^|\/)([-\w]+)\.[a-z]+$/i)[1];
|
css.title = sheet.title || sheet.href.match(/(?:^|\/)([-\w]+)\.[a-z]+$/i)[1];
|
||||||
|
|
||||||
// Don't update the local store if the file wasn't modified
|
// Don't update the local store if the file wasn't modified
|
||||||
if (lastModified && typeof(localStorage) !== "undefined") {
|
if (lastModified && typeof(localStorage) !== "undefined") {
|
||||||
|
Loading…
Reference in New Issue
Block a user