mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-17 07:26:46 +00:00
禁止复制文章功能,附带开关
This commit is contained in:
@@ -29,13 +29,6 @@ export function GlobalContextProvider(props) {
|
||||
initTheme()
|
||||
}, [])
|
||||
|
||||
// 是否允许复制页面内容
|
||||
useEffect(() => {
|
||||
if (!BLOG.CAN_COPY) {
|
||||
document.getElementsByTagName('html')[0].classList.add('forbid-copy')
|
||||
}
|
||||
}, [])
|
||||
|
||||
useEffect(() => {
|
||||
const handleStart = (url) => {
|
||||
NProgress.start()
|
||||
|
||||
Reference in New Issue
Block a user