|
@@ -130,12 +130,12 @@ import {
|
|
: NEUTRAL_STATE;
|
|
: NEUTRAL_STATE;
|
|
let statsSet = false;
|
|
let statsSet = false;
|
|
|
|
|
|
- RYDTools.getBrowser().runtime.sendMessage(
|
|
|
|
|
|
+ getBrowser().runtime.sendMessage(
|
|
{
|
|
{
|
|
message: "set_state",
|
|
message: "set_state",
|
|
videoId: getVideoId(window.location.href),
|
|
videoId: getVideoId(window.location.href),
|
|
- state: getState().current,
|
|
|
|
- likeCount: getLikeCountFromButton() || null
|
|
|
|
|
|
+ state: getState(storedData).current,
|
|
|
|
+ likeCount: getLikeCountFromButton() || null,
|
|
},
|
|
},
|
|
function (response) {
|
|
function (response) {
|
|
cLog("response from api:");
|
|
cLog("response from api:");
|