aboutsummaryrefslogtreecommitdiffstats
path: root/src/components
diff options
context:
space:
mode:
authorGravatar Joe Banks <[email protected]>2020-10-06 19:00:19 +0100
committerGravatar Joe Banks <[email protected]>2020-10-06 19:00:19 +0100
commit416bb162d799c28456de731bb8301f7063b82975 (patch)
tree7b16343d9f95d329fdc025c75f15c30cecb71229 /src/components
parentAdd 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')
-rw-r--r--src/components/OAuth2Button.tsx2
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;
}