BozoWithTheBanjo
PD🧩 Plasmo Developers
•Created by BozoWithTheBanjo on 4/4/2024 in #🔰newbie
Redirects working both in Chrome and Firefox
Did you manage to get this to work? I have a similar case.
How can I use the
declarativeNetRequest
(or something else) to generate dynamic rules that work on both chrome and Firefox? I want to redirect network calls to my local server JS script when I am prototyping, but when I am not, I want to use a static link to my website. I will have a toggle button (tied to a variable in storage) to determine which URL to redirect to.
If I put this into the background.ts it works for chrome, every time I open a new tab it just redirects to google. But it doesn't work for firefox.
This is in my package.json:
3 replies