git.shiar.nl
/
sc2-widget
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8c443d6
)
hardcode inno.json include for now
v0.2
author
Mischa POSLAWSKY
<perl@shiar.org>
Thu, 2 May 2019 10:39:01 +0000
(12:39 +0200)
committer
Mischa POSLAWSKY
<perl@shiar.org>
Thu, 2 May 2019 10:39:01 +0000
(12:39 +0200)
Request is not readily available with vector.im relays.
Reverts
1d18af433a
(2019-05-02) [include data from request parameter].
widget.html
patch
|
blob
|
history
diff --git
a/widget.html
b/widget.html
index ddcff037e93f8d90228421ba5dadc00a05e5640e..c604c5912391bc47bd3723a906c89676a45a30f9 100644
(file)
--- a/
widget.html
+++ b/
widget.html
@@
-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 = `