Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

234
Views
Trying to inject a content.js script in my chrome extention (Added right permmissions)

I am trying to inject a content.js script in my chrome extension through my background.js file - I've added the "scripting" and "activeTab permission but it still says:

-"Uncaught TypeError: Cannot read properties of undefined (reading 'executeScript')"

//manifest.json
{
"name": "WeWatch",
"version": "1.0",
"manifest_version": 3,
"permissions": [ 
  "tabs", "scripting","activeTab"
],
"background": {
  "service_worker": "background.js"
  
  
},
"action":{
  "default_icon":{
    "16":"pics/logo.png",
    "48":"pics/logo.png",
    "128":"pics/logo.png"  
  },
  "default_popup": "htmls/dif_popup.html",
  "default_title": "WeWatch$"
}

}

+++++++++++++++++++++++++++++++++++++++++++

//background.js
function room_process(){

chrome.scriptng.executeScript(
    {
    target:{tabId: room[3]}, //room[3]=tabId
    files:["content.js"]
    }
    
);

}

about 4 years ago · Santiago Trujillo
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!