mirror of
https://github.com/EnixCoda/Gitako.git
synced 2026-03-11 08:54:44 +00:00
chore: remove unused safari mark
This commit is contained in:
parent
3e89db3feb
commit
3ce088cf7b
2 changed files with 1 additions and 10 deletions
|
|
@ -11,7 +11,7 @@ import { platform } from 'platforms'
|
|||
import * as React from 'react'
|
||||
import { cx } from 'utils/cx'
|
||||
import * as DOMHelper from 'utils/DOMHelper'
|
||||
import { detectBrowser, run } from 'utils/general'
|
||||
import { run } from 'utils/general'
|
||||
import { useLoadedContext } from 'utils/hooks/useLoadedContext'
|
||||
import { useOnPJAXDone, usePJAX } from 'utils/hooks/usePJAX'
|
||||
import { useStateIO } from 'utils/hooks/useStateIO'
|
||||
|
|
@ -48,10 +48,6 @@ export function SideBar() {
|
|||
}
|
||||
}, [hasMetaData]) // eslint-disable-line react-hooks/exhaustive-deps
|
||||
|
||||
React.useEffect(() => {
|
||||
if (detectBrowser() === 'Safari') DOMHelper.markGitakoSafariFlag()
|
||||
}, [])
|
||||
|
||||
const { sidebarToggleMode, intelligentToggle } = configContext.value
|
||||
const $shouldShow = useStateIO(() =>
|
||||
intelligentToggle === null
|
||||
|
|
|
|||
|
|
@ -19,11 +19,6 @@ export function markGitakoReadyState(ready: boolean) {
|
|||
return setGitakoBodyClass(readyClassName, ready)
|
||||
}
|
||||
|
||||
export function markGitakoSafariFlag(enable = true) {
|
||||
const className = 'gitako-safari'
|
||||
return setGitakoBodyClass(className, enable)
|
||||
}
|
||||
|
||||
/**
|
||||
* if should show gitako, then move body right to make space for showing gitako
|
||||
* otherwise, hide the space
|
||||
|
|
|
|||
Loading…
Reference in a new issue