mirror of
https://github.com/EnixCoda/Gitako.git
synced 2026-03-11 08:54:44 +00:00
fix: set default copy snippet button to false on github.com
This commit is contained in:
parent
968a5a46f3
commit
8d9c3b9fb1
2 changed files with 4 additions and 5 deletions
|
|
@ -1,11 +1,9 @@
|
|||
import { dummyPlatformForTypeSafety } from './dummyPlatformForTypeSafety'
|
||||
import { Gitee } from './Gitee'
|
||||
import { Gitea } from './Gitea'
|
||||
import { Gitee } from './Gitee'
|
||||
import { GitHub } from './GitHub'
|
||||
|
||||
const platforms: {
|
||||
[name: string]: Platform
|
||||
} = {
|
||||
const platforms = {
|
||||
GitHub: GitHub,
|
||||
Gitee: Gitee,
|
||||
Gitea: Gitea,
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
import { SearchMode } from 'components/searchModes'
|
||||
import { platform, platformName } from 'platforms'
|
||||
import { storageHelper } from 'utils/storageHelper'
|
||||
import { migrateConfig } from './migrations'
|
||||
|
||||
|
|
@ -40,7 +41,7 @@ const defaultConfigs: Config = {
|
|||
accessToken: '',
|
||||
compressSingletonFolder: true,
|
||||
copyFileButton: true,
|
||||
copySnippetButton: true,
|
||||
copySnippetButton: !(platformName === 'GitHub' && !platform.isEnterprise()), // false when on github.com
|
||||
intelligentToggle: null,
|
||||
icons: 'rich',
|
||||
toggleButtonVerticalDistance: 124, // align with GitHub's navbar items
|
||||
|
|
|
|||
Loading…
Reference in a new issue