From 8736fd5ebf0d02bad24bd53260eb97e48d27fc13 Mon Sep 17 00:00:00 2001 From: Aki Date: Sat, 17 Apr 2021 01:29:27 +0200 Subject: Added battles storage to server --- .gitignore | 1 + derelict.js | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 265df06..9ea276c 100644 --- a/.gitignore +++ b/.gitignore @@ -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` -- cgit v1.1