diff options
author | sulthankarimov <sakarimov@users.noreply.github.com> | 2024-05-09 08:22:41 +0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-09 06:52:41 +0530 |
commit | f90e9581a651c9aa691fc4271613d4d75f4713a3 (patch) | |
tree | e5fe3eec6bb8d012feb5687be9c33e6ee143a0ac /recipes/peopleperhour/webview.js | |
parent | add real-or-random as a contributor for code [skip ci] (#544) (diff) | |
download | ferdium-recipes-f90e9581a651c9aa691fc4271613d4d75f4713a3.tar.gz ferdium-recipes-f90e9581a651c9aa691fc4271613d4d75f4713a3.tar.zst ferdium-recipes-f90e9581a651c9aa691fc4271613d4d75f4713a3.zip |
add recipes for freelancers (#534)
Diffstat (limited to 'recipes/peopleperhour/webview.js')
-rw-r--r-- | recipes/peopleperhour/webview.js | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/recipes/peopleperhour/webview.js b/recipes/peopleperhour/webview.js new file mode 100644 index 0000000..18ba381 --- /dev/null +++ b/recipes/peopleperhour/webview.js | |||
@@ -0,0 +1,19 @@ | |||
1 | function _interopRequireDefault(obj) { | ||
2 | return obj && obj.__esModule ? obj : { default: obj }; | ||
3 | } | ||
4 | |||
5 | const _path = _interopRequireDefault(require('path')); | ||
6 | |||
7 | module.exports = Ferdium => { | ||
8 | const getMessages = () => { | ||
9 | const directMessages = $( | ||
10 | '.notification-item.col-xs-12.clearfix.unread', | ||
11 | )?.length; | ||
12 | |||
13 | Ferdium.setBadge(directMessages); | ||
14 | }; | ||
15 | |||
16 | Ferdium.loop(getMessages); | ||
17 | |||
18 | Ferdium.injectCSS(_path.default.join(__dirname, 'service.css')); | ||
19 | }; | ||