From e05d27ea49929e763906e6c430ec79c1a093dde7 Mon Sep 17 00:00:00 2001 From: Vijay A Date: Wed, 26 May 2021 18:10:17 +0530 Subject: Replace 'remote' with 'electron/remote' Bumped up major version for affected recipes to denote breaking changes --- recipes/android-messages/webview.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'recipes/android-messages/webview.js') diff --git a/recipes/android-messages/webview.js b/recipes/android-messages/webview.js index 7c8e004..21323a5 100644 --- a/recipes/android-messages/webview.js +++ b/recipes/android-messages/webview.js @@ -1,10 +1,10 @@ "use strict"; const { - remote -} = require('electron'); + getCurrentWebContents +} = require('@electron/remote'); -const webContents = remote.getCurrentWebContents(); +const webContents = getCurrentWebContents(); const { session } = webContents; @@ -44,4 +44,4 @@ module.exports = (Franz, settings) => { } Franz.loop(getMessages); -}; \ No newline at end of file +}; -- cgit v1.2.3-70-g09d2