Skip to content

Commit

Permalink
add placeholder to text field
Browse files Browse the repository at this point in the history
  • Loading branch information
mtimkovich committed Jan 19, 2024
1 parent b19a83f commit 18ce3c4
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 9 deletions.
7 changes: 0 additions & 7 deletions chrome/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
// });
2 changes: 1 addition & 1 deletion chrome/popup.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!DOCTYPE html>
<html>
<body>
<textarea id="input" rows="6" cols="30"></textarea>
<textarea id="input" rows="6" cols="30" placeholder="E.g. dinner friday 7pm"></textarea>
<br>
<button type="button" id="add">Add</button>
<div id="error" style="color: red"></div>
Expand Down
2 changes: 1 addition & 1 deletion chrome/popup.js
Original file line number Diff line number Diff line change
@@ -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';

Expand Down

0 comments on commit 18ce3c4

Please sign in to comment.