Permalink
Browse files

Add files via upload

  • Loading branch information...
1 parent 233b293 commit 0607c233d09dab1d551cfcf15e937ff071babecf @levelsio levelsio committed on GitHub Oct 26, 2016
Showing with 6 additions and 4 deletions.
  1. +3 −3 nomad-list/package.json
  2. +3 −1 nomad-list/webview.js
@@ -10,10 +10,10 @@
"serviceName": "Nomad List",
"message": "",
"popup": [],
- "hasNotificationSound": false,
+ "hasNotificationSound": true,
"hasIndirectMessages": false,
- "hasTeamID": false,
- "customURL": false,
+ "hasTeamID": true,
+ "customURL": true,
"hostedOnly": false,
"webviewOptions": {
"disablewebsecurity": ""
@@ -4,6 +4,8 @@ module.exports = (Franz, options) => {
const getMessages = () => {
// get unread messages
// const updates = document.getElementById('franz').getAttribute('data-unread');
+ const count = $(".unread").length;
+ Franz.setBadge(count);
// get conversations in 'My Inbox'
// const inbox = document.getElementById('franz').getAttribute('data-inbox');
@@ -16,4 +18,4 @@ module.exports = (Franz, options) => {
// check for new messages every second and update Franz badge
Franz.loop(getMessages);
-};
+};

0 comments on commit 0607c23

Please sign in to comment.