Skip to content

Commit 872ae46

Browse files
committed
new_commit
1 parent 94e0012 commit 872ae46

File tree

2 files changed

+25
-1
lines changed

2 files changed

+25
-1
lines changed

background.js

+12-1
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,15 @@ chrome.browserAction.onClicked.addListener(function(tab) {
1616
});
1717
}
1818
});
19-
19+
const express = require('express')
20+
const app = express()
21+
22+
app.use(manifest.json())
23+
24+
app.post('/webhook', (req, res) => {
25+
const data = req.body
26+
// Do something with the data
27+
res.send('Webhook received')
28+
})
29+
30+
app.listen(3000, () => console.log('Webhook server listening on port 3000'))

popup.html

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
7+
<title>Document</title>
8+
</head>
9+
<body>
10+
<h3>Notification</h3>
11+
12+
</body>
13+
</html>

0 commit comments

Comments
 (0)