summaryrefslogtreecommitdiffhomepage
path: root/derelict.js
diff options
context:
space:
mode:
Diffstat (limited to 'derelict.js')
-rw-r--r--derelict.js4
1 files changed, 2 insertions, 2 deletions
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`