mirror of
https://github.com/EnixCoda/Gitako.git
synced 2026-03-11 08:54:44 +00:00
fix: detect enterprise
This commit is contained in:
parent
51a200c034
commit
db260b9d74
1 changed files with 2 additions and 3 deletions
|
|
@ -1,4 +1,3 @@
|
|||
import { platform } from 'platforms'
|
||||
import { resolveGitModules } from 'utils/gitSubmodule'
|
||||
import { sortFoldersToFront } from 'utils/treeParser'
|
||||
import * as API from './API'
|
||||
|
|
@ -76,7 +75,7 @@ function getUrlForRedirect(
|
|||
|
||||
export const Gitea: Platform = {
|
||||
isEnterprise() {
|
||||
return false;
|
||||
return !window.location.host.endsWith('gitea.com')
|
||||
},
|
||||
resolveMeta() {
|
||||
if (!DOMHelper.isInRepoPage()) {
|
||||
|
|
@ -157,4 +156,4 @@ export const Gitea: Platform = {
|
|||
getOAuthLink() {
|
||||
return `https://${window.location.host}/api/v1/user/applications/oauth2`
|
||||
},
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue