flat-state-13182
07/26/2022, 10:02 AMflat-state-13182
07/26/2022, 10:02 AMjson
"manifest": {
"host_permissions": [
"https://*/*"
],
"permissions": [
"storage",
"tabs",
"cookies",
"http://fonts.googleapis.com/",
"https://fonts.googleapis.com/"
],
"content_security_policy": {
"extension_pages": "style-src 'self' fonts.cdnfonts.com fonts.googleapis.com;font-src 'self' fonts.gstatic.com fonts.cdnfonts.com;object-src 'self'"
}
}
And loading the fonts locally doesn't seem to work well either. Besides the fact that a single font import might be split into 20 to 30 different files, the two ways to make the local import to work (using a relative path or using the chrome-extension://__MSG_@@extension_id__
i18n path) don't resolve properly and give wrong imports (with relative imports querying for the current URI rather than the extension since it's a content script, and the i18n path turning invalid)
Has anyone been able to make a custom font import to work inside a content script?limited-farmer-52140
07/26/2022, 10:06 AMlimited-farmer-52140
07/26/2022, 10:06 AMlimited-farmer-52140
07/26/2022, 10:07 AMlimited-farmer-52140
07/26/2022, 10:10 AM