I am learning to make a chrome extension and deveoped one with a popup browser action and have the following js file (called in popup.html via )
chrome.tabs.executeScript({
    code: 
    "var frameworks = [];" +
    "if(!!window.Vue) frameworks.push('Vue.js');" +
    "if(!!window.jQuery) frameworks.push('jQuery.js');" +
    "frameworks;"
}, (frameworks) => {
    document.body.innerHTML = frameworks[0].length
})
But when I am testing it on my website made using both vue and jquery it returns 0, I also checked it on other websites but all behaved same. What am I doing wrong here?
