Update script.js

- load the actual server in the form of the settings screen
This commit is contained in:
Ralf Stockmann 2023-05-18 22:46:07 +02:00 committed by GitHub
parent 68a331df85
commit 3d07b1fabe
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -147,6 +147,9 @@ $(document).ready(function() {
for (let i = 0; i < currentHashtags.length; i++) { for (let i = 0; i < currentHashtags.length; i++) {
$(`#hashtag${i+1}`).val(currentHashtags[i].substring(1)); // Remove the leading '#' $(`#hashtag${i+1}`).val(currentHashtags[i].substring(1)); // Remove the leading '#'
} }
// Pre-fill the server field with the current server
$('#serverUrl').val(server);
}); });
// Check if hashtags are provided // Check if hashtags are provided