Added comments
This commit is contained in:
parent
435a8bcfe0
commit
1025f6b2c2
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…
Reference in New Issue