mirror of
https://github.com/ijprest/keyboard-layout-editor.git
synced 2026-04-10 02:00:46 -07:00
Allow @import-ing of Google Fonts.
This commit is contained in:
parent
45b0e0b03b
commit
798607a78b
1 changed files with 2 additions and 2 deletions
|
|
@ -222,7 +222,8 @@ var $renderKey = (typeof(exports) !== 'undefined') ? exports : {};
|
|||
}
|
||||
css += "}\n";
|
||||
} else {
|
||||
var ok = (rule.name === "@font-face");
|
||||
var ok = (rule.name === "@font-face")
|
||||
|| (rule.name === "@import" && !rule.content && rule.selector.match(/^url\(http:\/\/fonts.googleapis.com\/css\?family=[^\)]+\)$/));
|
||||
if(ok) {
|
||||
css += rule.name;
|
||||
if(rule.selector) css += ' ' + rule.selector;
|
||||
|
|
@ -231,7 +232,6 @@ var $renderKey = (typeof(exports) !== 'undefined') ? exports : {};
|
|||
}
|
||||
}
|
||||
});
|
||||
console.log(css);
|
||||
return css;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue