mirror of
https://github.com/BewlyBewly/BewlyBewly.git
synced 2025-04-14 13:15:29 +00:00
fix: merge dev branch
This commit is contained in:
@@ -237,27 +237,19 @@ function handleOsScroll() {
|
||||
topBarRef.value?.handleScroll()
|
||||
}
|
||||
|
||||
provide<BewlyAppProvider>('BEWLY_APP', {
|
||||
activatedPage,
|
||||
mainAppRef,
|
||||
scrollbarRef,
|
||||
handleBackToTop,
|
||||
handlePageRefresh,
|
||||
handleReachBottom,
|
||||
})
|
||||
// fix #166 https://github.com/hakadao/BewlyBewly/issues/166
|
||||
function openVideoPageIfBvidExists() {
|
||||
// Assume the URL is https://www.bilibili.com/?bvid=BV1be41127ft&spm_id_from=333.788.seo.out
|
||||
// function openVideoPageIfBvidExists() {
|
||||
// Assume the URL is https://www.bilibili.com/?bvid=BV1be41127ft&spm_id_from=333.788.seo.out
|
||||
|
||||
// // Get the current URL's query string
|
||||
// const queryString = window.location.search
|
||||
// // Create a URLSearchParams instance
|
||||
// const urlParams = new URLSearchParams(queryString)
|
||||
// const bvid = urlParams.get('bvid')
|
||||
// // Get the current URL's query string
|
||||
// const queryString = window.location.search
|
||||
// // Create a URLSearchParams instance
|
||||
// const urlParams = new URLSearchParams(queryString)
|
||||
// const bvid = urlParams.get('bvid')
|
||||
|
||||
if (bvid)
|
||||
window.open(`https://www.bilibili.com/video/${bvid}`, '_self')
|
||||
}
|
||||
// if (bvid)
|
||||
// window.open(`https://www.bilibili.com/video/${bvid}`, '_self')
|
||||
// }
|
||||
|
||||
provide<BewlyAppProvider>('BEWLY_APP', {
|
||||
activatedPage,
|
||||
|
||||
Reference in New Issue
Block a user