Added comments

This commit is contained in:
Nicolai Ort 2021-08-14 15:58:58 +02:00
parent 435a8bcfe0
commit 1025f6b2c2
Signed by: niggl
GPG Key ID: 13AFA55AF62F269F
1 changed files with 2 additions and 1 deletions

View File

@ -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 = "";