Browse Source

replace leftover RYDTools call with function call

Leon Bubova 3 năm trước cách đây
mục cha
commit
b599f889cd
1 tập tin đã thay đổi với 3 bổ sung3 xóa
  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:");