2018-11-06 10:13:32 +00:00
|
|
|
/* eslint-disable no-underscore-dangle */
|
|
|
|
|
2018-11-17 10:52:36 +00:00
|
|
|
window.__init__ = fetch('/init', {
|
2018-11-06 10:13:32 +00:00
|
|
|
credentials: 'same-origin'
|
|
|
|
}).then(res => {
|
|
|
|
if (res.ok) {
|
|
|
|
return res.json();
|
|
|
|
}
|
|
|
|
|
|
|
|
throw new Error(res.statusText);
|
|
|
|
});
|