CSS Doesn't seem to load in Chrome app?

CommanderLiamTHX

In Runtime
Messages
133
Location
required
I'm making a Chrome app to fill the void for MSPaint, and I have a folder with the files the app needs to run. Here's what I have:
  • background.js
  • window.html
  • manifest.json
  • effects.css
I need CSS in the app, so I put the file there (as you can see) but when I open the app as an unpacked extension, nothing in the CSS file happens. Is there something else I need to do to get it to register in the app?

P.S. Sorry if this is a stupid question
 
Do you have a reference to it in the window.html file? Or are you dynamically loading it in JavaScript?
 
Wow, sometimes I can't believe myself. I added:

<head>
<link rel="stylesheet" type="text/css" href="effects.css">
</head>

to the window.html file, now it's working. Thanks!
 
Lol good to know that's all it was. Glad to hear you got it sorted.

Sent from my HTC One
 
Back
Top Bottom