Skip to content

Commit c31369b

Browse files
committed
Fix warning when CONFIG.MODE is not playground.
1 parent 98b67c4 commit c31369b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

browser-extension/src/entrypoints/content.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { CONFIG } from '../lib/config'
1+
import { CONFIG, ModeType } from '../lib/config'
22
import { logger } from '../lib/logger'
33
import { EnhancerRegistry, TextareaRegistry } from '../lib/registries'
44
import { githubPrNewCommentContentScript } from '../playgrounds/github-playground'
@@ -8,7 +8,7 @@ const enhancedTextareas = new TextareaRegistry()
88

99
export default defineContentScript({
1010
main() {
11-
if (CONFIG.MODE === 'PLAYGROUNDS_PR') {
11+
if (CONFIG.MODE as ModeType === 'PLAYGROUNDS_PR') {
1212
githubPrNewCommentContentScript()
1313
return
1414
}

0 commit comments

Comments
 (0)