Basically my extension consists in finding phone numbers on the screen, and adding icons by the side of them. Then when you click on the icon it opens an popup.
After building with npm run build, i try to upload without packing but i receive the following error:
this is my manifest.json:
{
"name": "Nvoip",
"version": "1.0",
"manifest_version": 3,
"permissions": ["storage", "tabs", "activeTab", "scripting"],
"description": "Extensão criada com o intuito de realizar ligações, enviar Whatsapp e SMS.",
"background": {
"service_worker": "background.js"
},
"content_scripts": [
{
"matches": ["<all_urls>"],
"js": ["content.js"]
}
]
}
my content.js only have a “console.log(“Chrome extension go”);”
i did a background.js to do the communication between the content.js and the script that i made, but there isn’t LOTS of content.
background.js
chrome.runtime.onMessage.addListener((message, sender, sendResponse) => {
if (message.type === "numbers_found") {
// Envia para o popup assim que ele abrir
chrome.runtime.sendMessage(message);
}
});
IDK anymore what can i do to solve this problem, can anyone give-me some help?
I tried to add a ./content.js at my manifest.json, and i tried using “manifest_version”: 2, but it doesn’t work as well