MetaMask / MetaMask/metamask-extension
[Bug]: `Event handler of 'notificationclick' event must be added on the initial evaluation of worker script.` error appears when importing existing SRP
- Dominant language
- TypeScript
- Stars
- 13.2k
- Forks
- 5.6k
- Avg merge
- 2d 5h
- Merged PRs (30d)
- 451
Description
**Describe the bug**
Error for the existing SRP appears for the notificationclick
**Expected behavior**
Error in the console should not appear
**Screenshots/Recordings**
**Steps to reproduce**
1. Login to the Metamask app with existing SRP
2. Check the console log for the notification
**Error messages or log output**
```shell
Event handler of 'notificationclick' event must be added on the initial evaluation of worker script.
```
**Where was this bug found?**
Live version (from official store)
**Version**
13.19.0
**Build type**
None
**Browser**
Chrome
**Operating system**
MacOS
Contributor guide
Research direction
Reproduce the issue in Chrome by importing an existing SRP into the MetaMask app and checking the console. Trace where the notificationclick event handler is registered in the extension's worker code; done means the existing SRP flow no longer produces the console error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- web-dev
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100