diff options
author | Aki <please@ignore.pl> | 2021-04-17 01:29:27 +0200 |
---|---|---|
committer | Aki <please@ignore.pl> | 2021-04-17 01:29:27 +0200 |
commit | 8736fd5ebf0d02bad24bd53260eb97e48d27fc13 (patch) | |
tree | f394ce5ed3f9e04d799e2540f499a34ce558c11f | |
parent | 2cc04321c53e0bfed7ea4eccb2a00402322aa8ab (diff) | |
download | derelict-prototype-8736fd5ebf0d02bad24bd53260eb97e48d27fc13.zip derelict-prototype-8736fd5ebf0d02bad24bd53260eb97e48d27fc13.tar.gz derelict-prototype-8736fd5ebf0d02bad24bd53260eb97e48d27fc13.tar.bz2 |
Added battles storage to server
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | derelict.js | 4 |
2 files changed, 3 insertions, 2 deletions
@@ -1,3 +1,4 @@ __pycache__ *.json derelict +.derelict diff --git a/derelict.js b/derelict.js index c76e0fc..f1227c1 100644 --- a/derelict.js +++ b/derelict.js @@ -121,7 +121,7 @@ class Wreck { } function loadWreckIcon() { - return fetch("wreck.svg") + return fetch("/wreck.svg") .then(response => response.text()) .then(text => { const parser = new window.DOMParser() @@ -223,7 +223,7 @@ function init() { let icon = loadWreckIcon() - fetch(url.searchParams.get("id") + ".json") + fetch(url.pathname.replace("view", "battles")) .then(response => response.json()) .then(killmails => { const url = km => `${ESI}/killmails/${km.id}/${km.hash}/?datasource=tranquility` |