-
-
Notifications
You must be signed in to change notification settings - Fork 673
Open
Copy link
Labels
A-linterArea - LinterArea - Lintergood first issueExperience Level - Good for newcomersExperience Level - Good for newcomers
Description
⚠ eslint-plugin-unicorn(require-post-message-target-origin): Missing the `targetOrigin` argument.
╭─[packages/web-shell/src/app/app.ts:116:77]
115 │ if (event.data.action === 'getAccessToken') {
116 │ event.ports[0].postMessage({ accessToken: this.#user?.access_token });
· ─
117 │ }
╰────
help: Insert `, self.location.origin`
The above is incorrect. postMessage
is not called on window
here, but MessagePort
. See https://developer.mozilla.org/en-US/docs/Web/API/MessagePort/postMessage
Similar, but not the same as #10106
Metadata
Metadata
Assignees
Labels
A-linterArea - LinterArea - Lintergood first issueExperience Level - Good for newcomersExperience Level - Good for newcomers