From 5d1e571a16d9b16d2b90c66041b94bf238d9793b Mon Sep 17 00:00:00 2001 From: Adinda Praditya Date: Thu, 10 Nov 2022 21:57:29 +0700 Subject: Add new recipe: PocketCasts (#226) --- recipes/pocketcasts/webview.js | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 recipes/pocketcasts/webview.js (limited to 'recipes/pocketcasts/webview.js') diff --git a/recipes/pocketcasts/webview.js b/recipes/pocketcasts/webview.js new file mode 100644 index 0000000..5c033a2 --- /dev/null +++ b/recipes/pocketcasts/webview.js @@ -0,0 +1,16 @@ +const _path = _interopRequireDefault(require('path')); + +function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { default: obj }; +} + +module.exports = Ferdium => { + // TODO: If your Pocket Casts service has unread messages, uncomment these lines to implement the logic for updating the badges + // const getMessages = () => { + // // TODO: Insert your notification-finding code here + // Ferdium.setBadge(0, 0); + // }; + // Ferdium.loop(getMessages); + + Ferdium.injectCSS(_path.default.join(__dirname, 'service.css')); +}; -- cgit v1.2.3-70-g09d2