I have a content script with a lot of functions in it, i would like to be able to split out those functions into other scripts
Is there any magic needed to call other scripts from the content script
my manifest contains both scripts
"content_scripts": [
{
"matches": [
"*://*/*"
],
"js": [
"content.js",
"other.js"
]
}
]
my content script is working fine
however if i put a function in the other.js file and step through it, anything i reference in other.js is undefined
is there anything i should know here?
Edit:
This is just a simple example, the Test function should run on contentscript load
contentscript.js
Test();
other.js;
function Test(){
return true;
}
Google is telling me uncaught ReferenceError, Test not defined