diff --git a/chrome/background.js b/chrome/background.js index 5726c94..3f022e8 100644 --- a/chrome/background.js +++ b/chrome/background.js @@ -27,10 +27,3 @@ chrome.runtime.onInstalled.addListener(() => { }); chrome.contextMenus.onClicked.addListener(quickAdd); - -// chrome.runtime.onMessage.addListener((request, sender, sendResponse) => { -// if (request.type === 'add') { -// quickAdd(request.data); -// } -// return true; -// }); diff --git a/chrome/popup.html b/chrome/popup.html index a6ba7b4..8898a9e 100644 --- a/chrome/popup.html +++ b/chrome/popup.html @@ -1,7 +1,7 @@ - +
diff --git a/chrome/popup.js b/chrome/popup.js index e04826b..f9cfb86 100644 --- a/chrome/popup.js +++ b/chrome/popup.js @@ -1,4 +1,4 @@ -// Same thing but synchronous because we love javascript so much. +// Same thing but with promises because we love javascript so much. function quickAdd(text) { const endpoint = 'https://timkovi.ch/rip_quick_add_api';