File tree Expand file tree Collapse file tree 3 files changed +2
-9
lines changed
Expand file tree Collapse file tree 3 files changed +2
-9
lines changed Original file line number Diff line number Diff line change @@ -27,10 +27,3 @@ chrome.runtime.onInstalled.addListener(() => {
2727} ) ;
2828
2929chrome . contextMenus . onClicked . addListener ( quickAdd ) ;
30-
31- // chrome.runtime.onMessage.addListener((request, sender, sendResponse) => {
32- // if (request.type === 'add') {
33- // quickAdd(request.data);
34- // }
35- // return true;
36- // });
Original file line number Diff line number Diff line change 11<!DOCTYPE html>
22< html >
33 < body >
4- < textarea id ="input " rows ="6 " cols ="30 "> </ textarea >
4+ < textarea id ="input " rows ="6 " cols ="30 " placeholder =" E.g. dinner friday 7pm " > </ textarea >
55 < br >
66 < button type ="button " id ="add "> Add</ button >
77 < div id ="error " style ="color: red "> </ div >
Original file line number Diff line number Diff line change 1- // Same thing but synchronous because we love javascript so much.
1+ // Same thing but with promises because we love javascript so much.
22function quickAdd ( text ) {
33 const endpoint = 'https://timkovi.ch/rip_quick_add_api' ;
44
You can’t perform that action at this time.
0 commit comments