mirror of
https://github.com/EnixCoda/Gitako.git
synced 2026-03-11 08:54:44 +00:00
fix: do not mount icon button when not in repo page
This commit is contained in:
parent
c1daf82f33
commit
9cec5e2692
1 changed files with 1 additions and 5 deletions
|
|
@ -7,6 +7,7 @@ import keyHelper from '../../utils/keyHelper'
|
|||
const init = dispatch => async () => {
|
||||
try {
|
||||
if (!URLHelper.isInRepoPage()) return
|
||||
dispatch({ logoContainerElement: DOMHelper.insertLogoMountPoint() })
|
||||
let nothingWentWrong = true
|
||||
const metaData = URLHelper.parse()
|
||||
dispatch(setMetaData, metaData)
|
||||
|
|
@ -45,13 +46,8 @@ const init = dispatch => async () => {
|
|||
.catch(err => {
|
||||
dispatch(handleError, err)
|
||||
})
|
||||
.then(() => {
|
||||
dispatch({ logoContainerElement: DOMHelper.insertLogoMountPoint() })
|
||||
})
|
||||
} catch (err) {
|
||||
dispatch(handleError, err)
|
||||
} finally {
|
||||
dispatch({ logoContainerElement: DOMHelper.insertLogoMountPoint() })
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue