mirror of
https://github.com/BewlyBewly/BewlyBewly.git
synced 2025-04-14 13:15:29 +00:00
perf: improve BewlyBewly inject speed
This commit is contained in:
@@ -6,7 +6,7 @@ import browser from 'webextension-polyfill'
|
||||
|
||||
import type { BewlyAppProvider } from '~/composables/useAppProvider'
|
||||
import { useDark } from '~/composables/useDark'
|
||||
import { OVERLAY_SCROLL_BAR_SCROLL } from '~/constants/globalEvents'
|
||||
import { BEWLY_MOUNTED, OVERLAY_SCROLL_BAR_SCROLL } from '~/constants/globalEvents'
|
||||
import { AppPage, LanguageType } from '~/enums/appEnums'
|
||||
import { accessKey, settings } from '~/logic'
|
||||
import { getUserID, isHomePage, scrollToTop } from '~/utils/main'
|
||||
@@ -109,6 +109,7 @@ onBeforeMount(() => {
|
||||
})
|
||||
|
||||
onMounted(() => {
|
||||
window.dispatchEvent(new CustomEvent(BEWLY_MOUNTED))
|
||||
// openVideoPageIfBvidExists()
|
||||
|
||||
if (isHomePage()) {
|
||||
|
||||
Reference in New Issue
Block a user