ar7casper
ar7casper
Explore posts from servers
PD🧩 Plasmo Developers
Created by ar7casper on 6/12/2023 in #🔰newbie
Google Analytics on Content Script
no no, i don't care about the site, i want my stuff. I have an overlay that's being opened once the user clicks on a button and i need to track how he uses that.
7 replies
PD🧩 Plasmo Developers
Created by ar7casper on 6/12/2023 in #🔰newbie
Google Analytics on Content Script
so no way of making content script, work, right?
7 replies
PD🧩 Plasmo Developers
Created by ar7casper on 3/27/2023 in #🔰newbie
window undefined on background script when trying to login via firebase
The background script is essentially a service worker. It doesn't has any idea about the DOM related stuff. Think of it as a separate server. You need to use sendMessage. That's in general. Regarding Plasmo, haven't tried it yet, will do soon and can report back. Assuming nothing much different there.
14 replies
PD🧩 Plasmo Developers
Created by ar7casper on 3/27/2023 in #🔰newbie
window undefined on background script when trying to login via firebase
In your example, you use a popup, which is nice and all. In my case, I work with a content script. So, I don't have chrome.identity, so I need to use a background script. Then, when I use that, it fails on window.
14 replies
PD🧩 Plasmo Developers
Created by ar7casper on 3/27/2023 in #🔰newbie
window undefined on background script when trying to login via firebase
Ye, I'm trying to authenticate using firebase
14 replies
PD🧩 Plasmo Developers
Created by ar7casper on 3/27/2023 in #🔰newbie
window undefined on background script when trying to login via firebase
It uses `sighInWithCredential, and inside it tries to work with local storage on window.
14 replies