From 7720eeb29bd76a323b0a58cb3529905b1b4cea0c Mon Sep 17 00:00:00 2001 From: Hakadao Date: Fri, 13 Oct 2023 16:09:52 +0800 Subject: [PATCH] refactor: rename function getFollowingAuthorVideos to getFollowedUsersVideos --- src/contentScripts/views/Home/components/Following.vue | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/contentScripts/views/Home/components/Following.vue b/src/contentScripts/views/Home/components/Following.vue index ef18f7a8..893f1e8d 100644 --- a/src/contentScripts/views/Home/components/Following.vue +++ b/src/contentScripts/views/Home/components/Following.vue @@ -12,13 +12,13 @@ const updateBaseline = ref('') onMounted(async () => { for (let i = 0; i < 3; i++) - await getFollowingAuthorVideos() + await getFollowedUsersVideos() emitter.off('reachBottom') emitter.on('reachBottom', async () => { if (!isLoading.value) { for (let i = 0; i < 3; i++) - await getFollowingAuthorVideos() + await getFollowedUsersVideos() } }) }) @@ -27,7 +27,7 @@ onUnmounted(() => { emitter.off('reachBottom') }) -async function getFollowingAuthorVideos() { +async function getFollowedUsersVideos() { isLoading.value = true try { const response = await browser.runtime.sendMessage({ @@ -134,4 +134,3 @@ function jumpToLoginPage() { -../types