Replies: 3 comments 2 replies
-
I think this is unrelated to Plasmo framework/API - more of a chrome extension issue - let's move it to a discussino. |
Beta Was this translation helpful? Give feedback.
1 reply
-
onInstalled event triggers only when the extension was installed first time OR if it was refreshed manually on extension dashboard I think. |
Beta Was this translation helpful? Give feedback.
1 reply
-
@louisgv, I built the same functionality in an extension using Vanilla JavaScript/HTML, and the update event does trigger. Try installing it from the following repository. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
What happened?
Using Plasmo, I built a Chrome extension with a custom new-tab page. When I forced/simulated an update by uploading an unpacked extension with a newer version but the same ID as the already-installed extension version, I found that my extension was not firing the update event if I have at least one new-tab page open prior to the update. Specifically, the
onInstalled
event was not firing withupdate
asreason
.I created the following new Plasmo project just to demonstrate this issue.
https://github.com/viclai/plasmo_french_fries
I discovered other similar scenarios in which the update event wasn't firing as I'd expect, but this is what I can show with a bare-bones sample. Please let me know if there's any workaround! 🙏
Version
Latest
What OS are you seeing the problem on?
MacOSX, Linux
What browsers are you seeing the problem on?
Chrome, Microsoft Edge
Relevant log output
No response
(OPTIONAL) Contact Details
No response
Code of Conduct
Beta Was this translation helpful? Give feedback.
All reactions