aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/googlemeet
diff options
context:
space:
mode:
authorLibravatar Vijay A <avijayr@protonmail.com>2021-09-08 19:27:23 +0530
committerLibravatar Vijay Raghavan Aravamudhan <vraravam@users.noreply.github.com>2021-09-08 19:49:43 +0530
commit7a446f7b8e9d4162d8e81eb863e151ef0ab66554 (patch)
tree2bd7794fb5080ad16d44420bc1f94ca2638435b7 /recipes/googlemeet
parentexecute prepare script with npx to avoid missing husky dependency error (#676) (diff)
downloadferdium-recipes-7a446f7b8e9d4162d8e81eb863e151ef0ab66554.tar.gz
ferdium-recipes-7a446f7b8e9d4162d8e81eb863e151ef0ab66554.tar.zst
ferdium-recipes-7a446f7b8e9d4162d8e81eb863e151ef0ab66554.zip
refactor: use the exposed methods for session handling from the main repo
Diffstat (limited to 'recipes/googlemeet')
-rw-r--r--recipes/googlemeet/package.json2
-rw-r--r--recipes/googlemeet/webview.js10
2 files changed, 5 insertions, 7 deletions
diff --git a/recipes/googlemeet/package.json b/recipes/googlemeet/package.json
index 9cab8dd..55cc0b8 100644
--- a/recipes/googlemeet/package.json
+++ b/recipes/googlemeet/package.json
@@ -1,7 +1,7 @@
1{ 1{
2 "id": "googlemeet", 2 "id": "googlemeet",
3 "name": "Google Meet", 3 "name": "Google Meet",
4 "version": "2.2.0", 4 "version": "2.2.1",
5 "license": "MIT", 5 "license": "MIT",
6 "config": { 6 "config": {
7 "serviceURL": "https://meet.google.com", 7 "serviceURL": "https://meet.google.com",
diff --git a/recipes/googlemeet/webview.js b/recipes/googlemeet/webview.js
index d6a29fe..9d334ba 100644
--- a/recipes/googlemeet/webview.js
+++ b/recipes/googlemeet/webview.js
@@ -10,13 +10,11 @@ window.onload = () => {
10 } 10 }
11}; 11};
12 12
13module.exports = Ferdi => { 13window.addEventListener('beforeunload', async () => {
14 const { session } = Ferdi.getCurrentWebContents(); 14 Ferdi.clearStorageData(['serviceworkers']);
15 session.flushStorageData(); 15});
16 session.clearStorageData({
17 storages: ['serviceworkers'],
18 });
19 16
17module.exports = Ferdi => {
20 const getMessages = function getMessages() { 18 const getMessages = function getMessages() {
21 const elements = document.querySelectorAll('.CxUIE, .unread'); 19 const elements = document.querySelectorAll('.CxUIE, .unread');
22 let count = 0; 20 let count = 0;