Skip to content

Commit

Permalink
Throw errors as warnings instead of exceptions so we continue execution
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas101 committed Nov 18, 2024
1 parent 781b103 commit 811d195
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/extension/contentscript-main-override/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ const genericWindow = window as any
if (genericWindow.aibrow) {
genericWindow.ai = genericWindow.aibrow
} else {
throw new Error('aibrow not found')
console.warn('aibrow not found')
}
if (genericWindow.aibrowTranslation) {
genericWindow.translation = genericWindow.aibrowTranslation
} else {
throw new Error('aibrowTranslation not found')
console.warn('aibrowTranslation not found')
}

0 comments on commit 811d195

Please sign in to comment.