Explorar o código

replace leftover RYDTools call with function call

Leon Bubova %!s(int64=3) %!d(string=hai) anos
pai
achega
b599f889cd
Modificáronse 1 ficheiros con 3 adicións e 3 borrados
  1. 3 3
      Extensions/combined/ryd.content-script.js

+ 3 - 3
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:");