From de8a095abd90b8e9c3a9d4c1a7aa8937522d46cb Mon Sep 17 00:00:00 2001 From: Clement Denis Date: Sat, 13 Jun 2020 09:44:42 +0200 Subject: [PATCH] tron: ai url, fix double / --- subjects/tron/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subjects/tron/index.html b/subjects/tron/index.html index f811b6de..b460684b 100644 --- a/subjects/tron/index.html +++ b/subjects/tron/index.html @@ -218,7 +218,7 @@ const remoteURL = (login, sha) => `https://git.${location.host}/${login}/tron/raw/branch/${sha || 'master'}/ai.js` const formatURL = url => { - if (url.startsWith('/')) return `${location.pathname}/ai/${url}` + if (url.startsWith('/')) return `${location.pathname}/ai${url}` if (url.startsWith('https://')) return url if (url.includes(location.hostname)) return `https://${url}` return url.includes('@') ? remoteURL(...url.split('@')) : `${location.origin}/${url}`