Merge pull request #152 from matrix-org/existentialism

Remove the existentialist crisis
This commit is contained in:
Jorik Schellekens 2020-09-24 17:00:20 +01:00 committed by GitHub
commit 2216305dc2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -38,7 +38,8 @@ const App: React.FC = () => {
const [hash, setHash] = useState(location.hash);
console.log(hash);
console.log(`Link for ${hash}`);
useEffect(() => {
// Some hacky uri decoding
if (location.href.split('/').length > 4) {
@ -46,7 +47,6 @@ const App: React.FC = () => {
}
window.onhashchange = () => setHash(location.hash);
console.log('why');
}, []);
if (hash) {