14 lines
322 B
JavaScript
14 lines
322 B
JavaScript
const hash = window.location.hash.substring(1).split('&');
|
|
var datas = {};
|
|
for (let elem of hash) {
|
|
elem = elem.split('=');
|
|
datas[elem[0]] = elem[1];
|
|
}
|
|
|
|
fetch('/', {
|
|
method: 'POST',
|
|
headers: {
|
|
'Content-Type': 'application/json'
|
|
},
|
|
body: JSON.stringify(datas)
|
|
}).then(() => {window.location.replace("/")});
|