This commit is contained in:
Tijl 2022-12-26 23:08:35 +01:00
parent 6919b914a4
commit daa7f81c7a
2 changed files with 2 additions and 2 deletions

View File

@ -13,7 +13,7 @@ function newRedirect () {
request.setRequestHeader('Content-type', 'application/json');
request.send(JSON.stringify(sendData));
request.onload = (e) => {
var shortUrlOut = document.getElementById("output-shortUrl")
var shortUrlOut = document.getElementById("output-shortUrl");
var responseData = JSON.parse(request.response);
shortUrlOut.value = `${config.shlinkOutUrl}/${responseData.shortCode}`;
shlinkAppBtnRdUrl = `${config.shlinkAppUrl}/short-code/${responseData.shortCode}/${config.shlinkAppOpenMode}`;

View File

@ -2,7 +2,7 @@ const searchButton = document.getElementById('searchButton');
var shlinkAppBtnRdUrl = `${config.shlinkAppUrl}`;
document.getElementById('title').innerHTML = config.customName
document.getElementById('title').innerHTML = config.customName;
if (searchButton) {
searchButton.addEventListener('click', () => {