hardcode inno.json include for now
[sc2-widget] / widget.html
index ddcff037e93f8d90228421ba5dadc00a05e5640e..c604c5912391bc47bd3723a906c89676a45a30f9 100644 (file)
@@ -12,9 +12,7 @@
 <body>
 <p id="clan">No clan data</p>
 <script>
-       let request = window.location.pathname.split('/')
-       request.splice(2, 1) // strip page name
-       fetch(request.join('/') + '.json')
+       fetch('/schtarr/inno.json')
        .then(res => res.json())
        .then(clan => {
                document.getElementById('clan').outerHTML = `