(key: string)
| 87 | signInButton.addEventListener('click', toggleSignIn, false); |
| 88 | |
| 89 | function getHashValue(key: string): string | null { |
| 90 | const matches = location.hash.match(new RegExp(key + '=([^&]*)')); |
| 91 | return matches ? matches[1] : null; |
| 92 | } |
| 93 | |
| 94 | // If a token has been passed in the hash fragment we display it in the UI and start the sign in process. |
| 95 | tokenTextArea.value = getHashValue('token') || ''; |