devshort

private self-hosted shortlink service
git clone https://git.clttr.info/devshort.git
Log (Feed) | Files | Refs (Tags) | README | LICENSE

commit d29ae2e7b6ffba2c6dfaf0b47546bf793bb7eaf8
parent 6b45fd543dfa5808fb55cf7c7cc8991a664a5207
Author: René Wagner <rwa@clttr.info>
Date:   Mon,  3 Jan 2022 20:05:39 +0100

remove obsolete update check

Diffstat:
Massets/main.js | 12------------
1 file changed, 0 insertions(+), 12 deletions(-)

diff --git a/assets/main.js b/assets/main.js @@ -141,15 +141,3 @@ document.getElementById('add-form').addEventListener('submit', function (event) } }); }); - -// Check for updates -fetch('https://devshort.flokX.dev/api.php?mode=version&current=' + version).then(function (response) { - return response.json(); -}).then(function (json) { - let inner = ' ' + version; - if (json['latest'] !== version) { - inner += ' <span class="text-warning">(<a class="text-warning" href="https://github.com/flokX/devShort/releases/latest">update available</a>!)</span>'; - } - document.getElementById('version-1').insertAdjacentHTML('beforeend', inner); - document.getElementById('version-2').insertAdjacentHTML('beforeend', inner); -});