فهرست منبع

replace leftover RYDTools call with function call

Leon Bubova 3 سال پیش
والد
کامیت
b599f889cd
1فایلهای تغییر یافته به همراه3 افزوده شده و 3 حذف شده
  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:");