diff options
| author | Yash <[email protected]> | 2024-04-11 04:52:44 +0000 |
|---|---|---|
| committer | Yash <[email protected]> | 2024-04-11 04:52:44 +0000 |
| commit | 6dcc7d18c9be5e3a5e0a3ff60668424ee0158b4e (patch) | |
| tree | 179aa936536510cc707368fc7c330c4c7fbdc3f8 /apps/web/src/app/MessagePoster.tsx | |
| parent | novel editor (diff) | |
| parent | save user ID with url to ensure that same website can be saved by users (diff) | |
| download | supermemory-new-ui.tar.xz supermemory-new-ui.zip | |
Merge branch 'main' of https://github.com/Dhravya/supermemory into new-uinew-ui
Diffstat (limited to 'apps/web/src/app/MessagePoster.tsx')
| -rw-r--r-- | apps/web/src/app/MessagePoster.tsx | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/apps/web/src/app/MessagePoster.tsx b/apps/web/src/app/MessagePoster.tsx index 64dc89fd..9b7011a8 100644 --- a/apps/web/src/app/MessagePoster.tsx +++ b/apps/web/src/app/MessagePoster.tsx @@ -1,21 +1,21 @@ -'use client'; +"use client"; -import { useEffect } from 'react'; +import { useEffect } from "react"; function MessagePoster({ jwt }: { jwt: string }) { useEffect(() => { - if (typeof window === 'undefined') return; - window.postMessage({ jwt }, '*'); + if (typeof window === "undefined") return; + window.postMessage({ jwt }, "*"); }, [jwt]); return ( <button onClick={() => { - if (typeof window === 'undefined') return; - window.postMessage({ jwt }, '*'); + if (typeof window === "undefined") return; + window.postMessage({ jwt }, "*"); }} > - Send message + Extension Auth </button> ); } |