Skip to content

Commit

Permalink
🎨 首次安装完浏览器剪藏扩展以后提示用户刷新页面 siyuan-note/siyuan#7079
Browse files Browse the repository at this point in the history
  • Loading branch information
88250 committed Jan 15, 2023
1 parent 49ce063 commit 92d91b2
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions popup.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,15 @@ const getNotebooks = (ipElement, tokenElement, notebooksElement) => {
})
}


const siyuanGetReadability = (tabId) => {
siyuanShowTip('Clipping, please wait a moment...', 60 * 1000)
try {
siyuanShowTip('Clipping, please wait a moment...', 60 * 1000)
} catch (e) {
alert("After installing the SiYuan extension for the first time, please refresh the page before using it")
window.location.reload()
return
}

window.scrollTo(0, document.body.scrollHeight);
scrollTo1(() => {
toggle = false
Expand Down

0 comments on commit 92d91b2

Please sign in to comment.