mirror of
https://github.com/EnixCoda/Gitako.git
synced 2026-03-11 08:54:44 +00:00
fix: recovery decorating page content
This commit is contained in:
parent
da9c98cb83
commit
c1daf82f33
2 changed files with 5 additions and 1 deletions
|
|
@ -8,6 +8,10 @@ import { raiseError } from '../analytics'
|
|||
|
||||
@connect(GitakoCore)
|
||||
export default class Gitako extends React.PureComponent {
|
||||
componentDidMount() {
|
||||
const { init } = this.props
|
||||
init()
|
||||
}
|
||||
|
||||
componentDidCatch(error) {
|
||||
raiseError(error)
|
||||
|
|
|
|||
|
|
@ -268,7 +268,7 @@ const clippy = createClippy()
|
|||
|
||||
let currentCodeSnippetElement
|
||||
function attachCopySnippet() {
|
||||
const readmeSelector = '.repository-content .readme article'
|
||||
const readmeSelector = '.repository-content #readme article'
|
||||
const readmeElement = document.querySelector(readmeSelector)
|
||||
if (readmeElement) {
|
||||
readmeElement.addEventListener('mouseover', ({ target }) => {
|
||||
|
|
|
|||
Loading…
Reference in a new issue