From b599f889cdc1f01c5f93ded87cfe151552e61dfb Mon Sep 17 00:00:00 2001 From: Leon Bubova Date: Fri, 17 Dec 2021 23:41:30 +0100 Subject: [PATCH] replace leftover RYDTools call with function call --- Extensions/combined/ryd.content-script.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Extensions/combined/ryd.content-script.js b/Extensions/combined/ryd.content-script.js index 8bc4a84..92ca8b0 100644 --- a/Extensions/combined/ryd.content-script.js +++ b/Extensions/combined/ryd.content-script.js @@ -130,12 +130,12 @@ import { : NEUTRAL_STATE; let statsSet = false; - RYDTools.getBrowser().runtime.sendMessage( + getBrowser().runtime.sendMessage( { message: "set_state", videoId: getVideoId(window.location.href), - state: getState().current, - likeCount: getLikeCountFromButton() || null + state: getState(storedData).current, + likeCount: getLikeCountFromButton() || null, }, function (response) { cLog("response from api:");