diff --git a/main.js b/main.js index 63d445f..243168a 100644 --- a/main.js +++ b/main.js @@ -11,8 +11,8 @@ clipboard.on('success', function (e) { }); }); -document.getElementById("create").onclick = createUrl; // Calls the api to create a new short url +document.getElementById("create").onclick = createUrl; function createUrl() { chrome.tabs.query({ active: true, lastFocusedWindow: true }, tabs => { let shorturl = { @@ -43,6 +43,7 @@ function createUrl() { } +//Resets the UI document.getElementById("reset").onclick = reset; function reset() { document.getElementById("shorturl").innerText = "";