Skip to content

Commit 994911d

Browse files
committed
Remove the long-dead cyan trick.
1 parent bda9caa commit 994911d

File tree

2 files changed

+0
-19
lines changed

2 files changed

+0
-19
lines changed

src/entrypoints/content.ts

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { CONFIG } from '../lib/config'
21
import type { CommentEvent, CommentSpot, StrippedLocation } from '../lib/enhancer'
32
import { logger } from '../lib/logger'
43
import { EnhancerRegistry, TextareaRegistry } from '../lib/registries'
@@ -98,8 +97,6 @@ function enhanceMaybe(textarea: HTMLTextAreaElement) {
9897
logger.debug('textarea already registered {}', textarea)
9998
return
10099
}
101-
102-
injectStyles()
103100
try {
104101
const location = detectLocation()
105102
logger.debug('[gitcasso] Calling tryToEnhance with location:', location)
@@ -118,18 +115,3 @@ function enhanceMaybe(textarea: HTMLTextAreaElement) {
118115
logger.error(e)
119116
}
120117
}
121-
122-
const STYLES = `
123-
.${CONFIG.ADDED_OVERTYPE_CLASS} {
124-
background: cyan !important;
125-
}
126-
`
127-
128-
function injectStyles(): void {
129-
if (!document.getElementById('gitcasso-styles')) {
130-
const style = document.createElement('style')
131-
style.textContent = STYLES
132-
style.id = 'gitcasso-styles'
133-
document.head.appendChild(style)
134-
}
135-
}

src/lib/config.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ const LOG_LEVELS = ['DEBUG', 'INFO', 'WARN', 'ERROR'] as const
77
export type LogLevel = (typeof LOG_LEVELS)[number]
88

99
export const CONFIG = {
10-
ADDED_OVERTYPE_CLASS: 'gitcasso-overtype',
1110
EXTENSION_NAME: 'gitcasso', // decorates logs
1211
LOG_LEVEL: 'DEBUG' satisfies LogLevel,
1312
MODE: 'PROD' satisfies ModeType,

0 commit comments

Comments
 (0)