fix: set default copy snippet button to false on github.com

This commit is contained in:
EnixCoda 2021-05-25 23:18:53 +08:00
parent 968a5a46f3
commit 8d9c3b9fb1
No known key found for this signature in database
GPG key ID: 0C1A07377913A1DD
2 changed files with 4 additions and 5 deletions

View file

@ -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,

View file

@ -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