devshort

Unnamed repository; edit this file 'description' to name the repository.
git clone git://code.clttr.info/devshort.git
Log | Files | Refs | README | LICENSE

commit 4272275c50c1961e28eaeb595c7e684ff084b35d
parent cda3d9e86509aeb7f6647e605da3f6de27f5dfdc
Author: René Wagner <rwagner@rw-net.de>
Date:   Mon, 27 Jan 2020 21:39:47 +0100

Update assets/main.js

Co-Authored-By: Florian <flokX@users.noreply.github.com>
Diffstat:
Massets/main.js | 3+--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/assets/main.js b/assets/main.js @@ -129,7 +129,7 @@ document.getElementById('add-form').addEventListener('submit', function (event) document.getElementById('name').value = ''; document.getElementById('url').value = 'https://'; vm.loadData(); - document.getElementById('status').innerHTML = ""; + document.getElementById('status').innerHTML = ''; } else if (data.status === 'unvalid-url') { document.getElementById('status').insertAdjacentHTML('afterbegin', '<div class="alert alert-danger" role="alert">Unvalid URL. Please provide a valid URL.</div>'); } else if (data.status === 'url-already-exists') { @@ -151,4 +151,3 @@ fetch('https://devshort.flokX.dev/api.php?mode=version&current=' + version).then document.getElementById('version-1').insertAdjacentHTML('beforeend', inner); document.getElementById('version-2').insertAdjacentHTML('beforeend', inner); }); -