Repository navigation
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. |
1 reply
|
onInstalled event triggers only when the extension was installed first time OR if it was refreshed manually on extension dashboard I think. |
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. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
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
onInstalledevent was not firing withupdateasreason.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
All reactions