diff --git a/screenshot.png b/screenshot.png index d10a055..eb6e551 100644 Binary files a/screenshot.png and b/screenshot.png differ diff --git a/src/main/resources/public/js/main.js b/src/main/resources/public/js/main.js index e4ea812..8a6e7ab 100644 --- a/src/main/resources/public/js/main.js +++ b/src/main/resources/public/js/main.js @@ -26,9 +26,6 @@ const refreshData = async () => { const displayData = async (data) => { let site = await getSiteUrl(); - if (window.isSecureContext) { - site = site.replace(/(^\w+:|^)\/\//, ''); - } table_box = document.querySelector(".pure-table"); if (data.length == 0) { table_box.style.visibility = "hidden"; @@ -37,7 +34,7 @@ const displayData = async (data) => { const table = document.querySelector("#url-table"); if (!window.isSecureContext) { const shortUrlHeader = document.getElementById("short-url-header"); - shortUrlHeader.innerHTML = "Short URL (click to open)"; + shortUrlHeader.innerHTML = "Short URL (right click and copy)"; } table_box.style.visibility = "visible"; table.innerHTML = ''; // Clear @@ -98,8 +95,8 @@ const addProtocol = (input) => { } const A_LONG = (s) => `${s}`; -const A_SHORT = (s, t) => `${t}/${s}`; -const A_SHORT_INSECURE = (s, t) => `${t}/${s}`; +const A_SHORT = (s, t) => `${s}`; +const A_SHORT_INSECURE = (s, t) => `${s}`; const deleteButton = (shortUrl) => { const td = document.createElement("td");