From c5d2a889d4cb44f995d74051f83628b505383093 Mon Sep 17 00:00:00 2001 From: Kristóf Marussy Date: Sun, 19 Sep 2021 00:41:52 +0200 Subject: fix: privileged API access Privileged browser APIs should be accessed from webview.js via the Ferdi parameter to the exported function. If any service is broken (e.g., screen sharing), then most likely we have to fix recipe.js or screenshare.js --- recipes/tweetdeck/package.json | 2 +- recipes/tweetdeck/webview.js | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'recipes/tweetdeck') diff --git a/recipes/tweetdeck/package.json b/recipes/tweetdeck/package.json index a438716..5400bac 100644 --- a/recipes/tweetdeck/package.json +++ b/recipes/tweetdeck/package.json @@ -1,7 +1,7 @@ { "id": "tweetdeck", "name": "Tweetdeck", - "version": "1.2.0", + "version": "1.2.1", "license": "MIT", "config": { "serviceURL": "https://tweetdeck.twitter.com/", diff --git a/recipes/tweetdeck/webview.js b/recipes/tweetdeck/webview.js index b60415d..54b7997 100644 --- a/recipes/tweetdeck/webview.js +++ b/recipes/tweetdeck/webview.js @@ -1,9 +1,9 @@ -// Tweetdeck redirect fix -Ferdi.ipcRenderer.on('redirect-url', (event, url) => { - window.location.assign(url); -}); - module.exports = Ferdi => { + // Tweetdeck redirect fix + Ferdi.ipcRenderer.on('redirect-url', (event, url) => { + window.location.assign(url); + }); + const getMessages = function getMessages() { const elements = document.querySelectorAll('.msg-unread-count'); let count = 0; -- cgit v1.2.3-54-g00ecf