From 767e8a7aa62786bbf89065e04ddf1012ae11b3e7 Mon Sep 17 00:00:00 2001 From: starknt <1431880400@qq.com> Date: Fri, 26 Jan 2024 14:52:54 +0800 Subject: [PATCH] fix: merge `dev` branch --- src/contentScripts/views/App.vue | 28 ++++++++++------------------ 1 file changed, 10 insertions(+), 18 deletions(-) diff --git a/src/contentScripts/views/App.vue b/src/contentScripts/views/App.vue index d096dde4..f880c74a 100644 --- a/src/contentScripts/views/App.vue +++ b/src/contentScripts/views/App.vue @@ -237,27 +237,19 @@ function handleOsScroll() { topBarRef.value?.handleScroll() } -provide('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('BEWLY_APP', { activatedPage,