Add background WhatsApp notifications
- Show service worker notifications and focus the app when clicked - Bump the package version to 1.0.8
This commit is contained in:
1 parent
02f5b05265
commit
2b7460d976
5 files changed
+329
-8
No files matched your search
+6
-1
@@ -1,4 +1,9 @@
|
||||
const { ipcRenderer } = require('electron');
|
||||
const { contextBridge, ipcRenderer } = require('electron');
|
||||
|
||||
// Used by the page shim in notifications.js when a notification is clicked.
|
||||
contextBridge.exposeInMainWorld('__wadFocusWindow', () => {
|
||||
ipcRenderer.send('whatsapp:focus-window');
|
||||
});
|
||||
|
||||
const SVG_NS = 'http://www.w3.org/2000/svg';
|
||||
const CONTAINER_ID = 'wad-toast-container';
|
||||
|
||||
Reference in new issue
Block a user