I want to use some external CSS and JS to my chrome extenstion from the backgroung script, Suppose I want using the following files:
css/pnotify.css
js/pnotify.js
inside backgroung script I want to be able to write:
new PNotify({
delay: 3000,
title: 'Error',
text: 'server not responding',
type: 'error',
styling: 'bootstrap3'
});
but when I'm getting error:
PNotify is not defined
I tried to add in manifest like:
"content_scripts": [{
"css": [
"css/pnotify.css"
],
"js": [
"js/pnotify.js"
]
}]
but still same error