Skip to content

Commit 33a2aba

Browse files
author
ntwigg
committed
More renaming and moving.
1 parent e484541 commit 33a2aba

File tree

4 files changed

+17
-18
lines changed

4 files changed

+17
-18
lines changed
File renamed without changes.
File renamed without changes.

browser-extension/src/entrypoints/content.ts

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1+
import { CONFIG } from '../common/config'
2+
import { logger } from '../common/logger'
13
import { EnhancerRegistry, TextareaRegistry } from '../datamodel/registries'
2-
import { logger } from './content/logger'
3-
import { injectStyles } from './content/styles'
44

55
const handlerRegistry = new EnhancerRegistry()
66
const textareaRegistry = new TextareaRegistry()
@@ -81,3 +81,18 @@ function initializeMaybeIsPageload(textarea: HTMLTextAreaElement) {
8181
logger.debug('No handler found for textarea')
8282
}
8383
}
84+
85+
const STYLES = `
86+
.${CONFIG.ADDED_OVERTYPE_CLASS} {
87+
background: cyan !important;
88+
}
89+
`
90+
91+
function injectStyles(): void {
92+
if (!document.getElementById('gitcasso-styles')) {
93+
const style = document.createElement('style')
94+
style.textContent = STYLES
95+
style.id = 'gitcasso-styles'
96+
document.head.appendChild(style)
97+
}
98+
}

browser-extension/src/entrypoints/content/styles.ts

Lines changed: 0 additions & 16 deletions
This file was deleted.

0 commit comments

Comments
 (0)