Response function not working in popup.js chrome extension
问题 I'm making a small chrome extension. Right now I'm checking for website language and trying to show that language in popup.html but response function is not working and I'm unable to show language in popup. Any help? popup.html <!DOCTYPE html> <html> <head></head> <body> <h1>Popup</h1> <script src="./scripts/popup.js"></script> </body> </html> popup.js chrome.runtime.sendMessage({type: "getLanguage"}, function(selectedLanguage) { // This function is not working if(typeof selectedLanguage ==