refactor: Refactor API imports and update API endpoints

This commit is contained in:
Hakadao
2024-04-11 17:24:01 +08:00
parent 1a3bafb284
commit d5b568c978
8 changed files with 24 additions and 17 deletions

View File

@@ -267,7 +267,7 @@ function handleDislike() {
}
browser.runtime.sendMessage({
contentScriptQuery: 'dislikeVideo',
contentScriptQuery: API.VIDEO.DISLIKE_VIDEO,
...params,
sign: getTvSign(params),
})
@@ -297,7 +297,7 @@ function handleUndoDislike(video: AppVideoItem) {
}
browser.runtime.sendMessage({
contentScriptQuery: 'undoDislikeVideo',
contentScriptQuery: API.VIDEO.UNDO_DISLIKE_VIDEO,
...params,
sign: getTvSign(params),
}).then((res) => {