Skip to content

Commit 18ce3c4

Browse files
committed
add placeholder to text field
1 parent b19a83f commit 18ce3c4

File tree

3 files changed

+2
-9
lines changed

3 files changed

+2
-9
lines changed

chrome/background.js

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,3 @@ chrome.runtime.onInstalled.addListener(() => {
2727
});
2828

2929
chrome.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-
// });

chrome/popup.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
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>

chrome/popup.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Same thing but synchronous because we love javascript so much.
1+
// Same thing but with promises because we love javascript so much.
22
function quickAdd(text) {
33
const endpoint = 'https://timkovi.ch/rip_quick_add_api';
44

0 commit comments

Comments
 (0)