I'm making a browser extension/addon, and need to get the value of a specific variable stored in another file. However, as soon as I add the import statement to that file my code stops working.
import "./checkStatus"
function randomFunc(text, element) {
// code
}
function recurse(element) {
// more code
}
var html = document.getElementsByTagName('html')[0];
recurse(html)
Is there something I'm doing wrong that's causing it to break?