[*Theme] Fix imports starting with //

This commit is contained in:
Ducko 2021-07-17 20:55:50 +01:00 committed by Alyxia Sother
parent fc795a700b
commit 11424b18eb
No known key found for this signature in database
GPG Key ID: 355968D14144B739
1 changed files with 2 additions and 1 deletions

View File

@ -73,7 +73,8 @@ export default async (manifest, _content, repo) => {
let imports = content.match(/@import url\(['"`]?(.*)['"`]?\);/g) || [];
for (const x of imports) {
const url = x.replace(/@import url\(['"`]?/, '').replace(/['"`]?\);/, '');
let url = x.replace(/@import url\(['"`]?/, '').replace(/['"`]?\);/, '');
if (url.startsWith('//')) url = 'https:' + url;
console.log(x, url);