Skip to content

Commit 9ffc0f3

Browse files
committed
Add annotation to browser optional chaining in Popup component
1 parent 7015f18 commit 9ffc0f3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/popup/component.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ function executeScript(position: number): void {
5252
export function Popup() {
5353
// Sends the `popupMounted` event
5454
React.useEffect(() => {
55+
// NOTE - we use conditional chaining on `browser`import
56+
// because it doesn't load up in Storybook
5557
browser?.runtime.sendMessage({ popupMounted: true });
5658
}, []);
5759

0 commit comments

Comments
 (0)