aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/netlify
diff options
context:
space:
mode:
Diffstat (limited to 'recipes/netlify')
-rw-r--r--recipes/netlify/package.json2
-rw-r--r--recipes/netlify/webview.js12
2 files changed, 11 insertions, 3 deletions
diff --git a/recipes/netlify/package.json b/recipes/netlify/package.json
index a90c544..076c68b 100644
--- a/recipes/netlify/package.json
+++ b/recipes/netlify/package.json
@@ -1,7 +1,7 @@
1{ 1{
2 "id": "netlify", 2 "id": "netlify",
3 "name": "Netlify", 3 "name": "Netlify",
4 "version": "1.1.0", 4 "version": "1.2.0",
5 "license": "MIT", 5 "license": "MIT",
6 "config": { 6 "config": {
7 "serviceURL": "https://app.netlify.com", 7 "serviceURL": "https://app.netlify.com",
diff --git a/recipes/netlify/webview.js b/recipes/netlify/webview.js
index 6bfff02..17fd73d 100644
--- a/recipes/netlify/webview.js
+++ b/recipes/netlify/webview.js
@@ -1,8 +1,16 @@
1module.exports = (Ferdium) => { 1function _interopRequireDefault(obj) {
2 return obj && obj.__esModule ? obj : { default: obj };
3}
4
5const _path = _interopRequireDefault(require('path'));
6
7module.exports = Ferdium => {
2 const getMessages = () => { 8 const getMessages = () => {
3 const notifications = document.querySelectorAll("circle"); 9 const notifications = document.querySelectorAll('circle');
4 10
5 Ferdium.setBadge(0, notifications.length > 0 ? 1 : 0); 11 Ferdium.setBadge(0, notifications.length > 0 ? 1 : 0);
6 }; 12 };
7 Ferdium.loop(getMessages); 13 Ferdium.loop(getMessages);
14
15 Ferdium.injectCSS(_path.default.join(__dirname, 'service.css'));
8}; 16};