瀏覽代碼

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