mirror of
https://github.com/BewlyBewly/BewlyBewly.git
synced 2025-04-14 13:15:29 +00:00
chore: remove or comment out some unused things
This commit is contained in:
@@ -22,8 +22,6 @@ if (isFirefox) {
|
||||
})
|
||||
}
|
||||
else {
|
||||
// Firefox `browser.tabs.executeScript()` requires scripts return a primitive value
|
||||
|
||||
document.addEventListener('DOMContentLoaded', () => {
|
||||
injectApp()
|
||||
})
|
||||
|
||||
@@ -45,22 +45,22 @@ onMounted(async () => {
|
||||
keyword.value,
|
||||
)
|
||||
|
||||
if (favoriteVideosWrap.value) {
|
||||
favoriteVideosWrap.value.addEventListener('scroll', () => {
|
||||
// When you scroll to the bottom, they will automatically
|
||||
// add the next page of data to the history list
|
||||
if (
|
||||
favoriteVideosWrap.value.clientHeight
|
||||
+ favoriteVideosWrap.value.scrollTop
|
||||
>= favoriteVideosWrap.value.scrollHeight - 20
|
||||
&& favoriteResources.length > 0
|
||||
&& !isLoading.value
|
||||
) {
|
||||
if (activatedMediaId.value && !noMoreContent.value)
|
||||
getFavoriteResources(activatedMediaId.value, currentPageNum.value++)
|
||||
}
|
||||
})
|
||||
}
|
||||
// if (favoriteVideosWrap.value) {
|
||||
// favoriteVideosWrap.value.addEventListener('scroll', () => {
|
||||
// // When you scroll to the bottom, they will automatically
|
||||
// // add the next page of data to the history list
|
||||
// if (
|
||||
// favoriteVideosWrap.value.clientHeight
|
||||
// + favoriteVideosWrap.value.scrollTop
|
||||
// >= favoriteVideosWrap.value.scrollHeight - 20
|
||||
// && favoriteResources.length > 0
|
||||
// && !isLoading.value
|
||||
// ) {
|
||||
// if (activatedMediaId.value && !noMoreContent.value)
|
||||
// getFavoriteResources(activatedMediaId.value, currentPageNum.value++)
|
||||
// }
|
||||
// })
|
||||
// }
|
||||
})
|
||||
|
||||
async function getFavoriteCategories() {
|
||||
|
||||
Reference in New Issue
Block a user