File tree Expand file tree Collapse file tree 4 files changed +17
-18
lines changed
Expand file tree Collapse file tree 4 files changed +17
-18
lines changed File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change 1+ import { CONFIG } from '../common/config'
2+ import { logger } from '../common/logger'
13import { EnhancerRegistry , TextareaRegistry } from '../datamodel/registries'
2- import { logger } from './content/logger'
3- import { injectStyles } from './content/styles'
44
55const handlerRegistry = new EnhancerRegistry ( )
66const 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+ }
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments