From 8d878e9aba3e46f9dadfa6c0de0b403c356b1f20 Mon Sep 17 00:00:00 2001 From: Vijay A Date: Fri, 4 Jun 2021 18:44:31 +0530 Subject: Reverted '@electron/remote' changes since the badges were broken for whatsapp and other recipes. --- recipes/whatsapp/package.json | 2 +- recipes/whatsapp/webview.js | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'recipes/whatsapp') diff --git a/recipes/whatsapp/package.json b/recipes/whatsapp/package.json index e9c4bf4..90c68aa 100644 --- a/recipes/whatsapp/package.json +++ b/recipes/whatsapp/package.json @@ -1,7 +1,7 @@ { "id": "whatsapp", "name": "WhatsApp", - "version": "3.0.0", + "version": "3.0.1", "description": "WhatsApp", "main": "index.js", "author": "Stefan Malzner ", diff --git a/recipes/whatsapp/webview.js b/recipes/whatsapp/webview.js index 5dd3729..8320d9e 100644 --- a/recipes/whatsapp/webview.js +++ b/recipes/whatsapp/webview.js @@ -1,12 +1,12 @@ "use strict"; const { - getCurrentWebContents -} = require('@electron/remote'); + remote +} = require('electron'); const path = require('path'); -const webContents = getCurrentWebContents(); +const webContents = remote.getCurrentWebContents(); const { session } = webContents; -- cgit v1.2.3-54-g00ecf