-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
29 lines (26 loc) · 1.09 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<html>
<head>
<script>
const state = location.search.match(".*[\?&]state=([^&]*)(&.*$|$)");
if (state) {
const code = location.search.match(".*[\?&]code=([^&]*)(&.*$|$)");
if (code) {
document.location.hash = `/authorized/${state[1]}/${encodeURIComponent(decodeURIComponent(code[1]))}`;
document.location.search = "";
} else {
const error = location.search.match(".*[\?&]error=([^&]*)(&.*$|$)");
document.location.hash = `/unauthorized/${state[1]}/${encodeURIComponent(decodeURIComponent(error[1]))}`;
document.location.search = "";
}
}
</script>
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<script src="./node_modules/react/umd/react.development.js"></script>
<script src="./node_modules/react-dom/umd/react-dom.development.js"></script>
<script src="./dist/cloudstorage-wasm.js"></script>
<script src="./dist/main.js"></script>
</head>
<body>
<div id="main">Loading</div>
</body>
</html>