diff options
author | 2020-10-06 19:00:19 +0100 | |
---|---|---|
committer | 2020-10-06 19:00:19 +0100 | |
commit | 416bb162d799c28456de731bb8301f7063b82975 (patch) | |
tree | 7b16343d9f95d329fdc025c75f15c30cecb71229 /src/components/OAuth2Button.tsx | |
parent | Add a setInterval to check if the child window is manually closed (diff) |
Better handle other messages from the React DevTools extension
Diffstat (limited to 'src/components/OAuth2Button.tsx')
-rw-r--r-- | src/components/OAuth2Button.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/components/OAuth2Button.tsx b/src/components/OAuth2Button.tsx index 08c4b7f..d67b1ab 100644 --- a/src/components/OAuth2Button.tsx +++ b/src/components/OAuth2Button.tsx @@ -58,7 +58,7 @@ function doLogin(disableFunction: (newState: boolean) => void) { }, 500) window.onmessage = (code: MessageEvent) => { - if (code.data.hello) { + if (code.data.source) { // React DevTools has a habit of sending messages, ignore them. return; } |