I'm trying to make a theme for a website. So I setup a Chrome extension,
this is the manifest:
{
"manifest_version": 2,
"name": "Beard's Material Discord theme for chrome",
"version": "1.3.5",
"description": "an extension to make discord more material",
"background": {
"scripts": ["background.js"],
"persistent": true
},
"content_scripts": [ {
"css": ["styles.css"],
"matches": ["https://discordapp.com/*"]
} ]
}
Here is the background.js
chrome.runtime.onInstalled.addListener(function (object) {
chromez.tabs.create({url: "http://gonova.gq/beardstheme"}, function (tab) {
console.log("New tab launched with http://gonova.gq/beardstheme");
});
});
And here is the styles.css
@import url('https://rawgit.com/BeardDesign1/Material-design-theme-ressources/master/code-files/update/version.css');
So here is the issue. The extension fully works when I paste the css from "https://rawgit.com/BeardDesign1/Material-design-theme-ressources/master/code-files/update/version.css" it completely works. But when I use the @import command nothing happends.
Is this because Chrome doesn't allow that? Or am I doing it completely wrong.