I'm developing Google Chrome extension. I have a static countryList.js
file which is placed locally in the same folder with another file with the code below. I just want to load countryList.js
content into js variable of the second file, but my code doesn't work, though it works if countryList.js
is placed on a remote server. What am I doing wrong? I can not place it on the server because it is forbidden for Chrome extensions.
var countryList = $.get("countryList.js" + localStorage.uid + "&ver=" + localStorage.version, function () {
callback()
}