Ok, this time Im stumped and I've been stuck on th...
# support-framework
c
Ok, this time Im stumped and I've been stuck on this for a few hours now... Why does my
chrome.runtime
have nothing in it?
s
Thread automatically created by TD in #978320682985349130
c
this apparently doesnt even need permissions according to the ChromeDev docs...
and I get this every time
oh wait, It says
OnInstalledReason
but, I've tried more than just that... lemme switch it though
l
where are you trying to use it? many chrome API are not exposed at all in the content script context, you will need to ping a bgsw and piggyback off the sw
c
background.tsx
Nope
l
Copy code
chrome.runtime.onInstalled.addListener(details => {
  if (details.reason === chrome.runtime.OnInstalledReason.INSTALL) {
    log etccc
  }
});
btw it should be
background.ts
just to double-check, there's no UI for sw (no x)