- let request = window.location.pathname.split('/')
- request.splice(2, 1) // strip page name
- fetch(request.join('/') + '.json')
- .then(res => res.json())
+ fetch('/schtarr/inno.json')
+ .then(res => {
+ if (res.status != 200) {
+ console.log('got %o', res)
+ throw `status ${res.status}`
+ }
+ return res.json()
+ })