2021-09-09 02:06:39 +02:00
|
|
|
const hash = window.location.hash.substring(1).split('&');
|
|
|
|
var datas = {};
|
2021-09-04 19:05:09 +02:00
|
|
|
for (let elem of hash) {
|
2021-09-09 02:06:39 +02:00
|
|
|
elem = elem.split('=');
|
|
|
|
datas[elem[0]] = elem[1];
|
2021-09-04 19:05:09 +02:00
|
|
|
}
|
2021-09-09 02:06:39 +02:00
|
|
|
|
2021-09-10 18:36:21 +02:00
|
|
|
fetch('/', {
|
2021-09-04 19:05:09 +02:00
|
|
|
method: 'POST',
|
|
|
|
headers: {
|
|
|
|
'Content-Type': 'application/json'
|
|
|
|
},
|
|
|
|
body: JSON.stringify(datas)
|
2021-09-09 02:06:39 +02:00
|
|
|
}).then(() => {window.location.replace("/")});
|