Browse Source

Added comments

main
Nicolai Ort 4 months ago
parent
commit
1025f6b2c2
Signed by: niggl GPG Key ID: 13AFA55AF62F269F
  1. 3
      main.js

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

Loading…
Cancel
Save