Skip to content

Commit

Permalink
Bump to 1.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas101 committed Nov 14, 2024
1 parent 75e1fba commit 86f2472
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "aibrow",
"version": "1.1.4",
"version": "1.2.0",
"type": "module",
"scripts": {
"postinstall": "node ./build/generate_eslint.js && patch-package",
Expand Down
5 changes: 3 additions & 2 deletions src/extension/contentscript-main/index.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
import AI from './AI'
import Translation from './Translation'

const ai = new AI(window.ai)
export const ai = new AI(window.ai)
export const translation = new Translation(ai)

if (process.env.BROWSER !== 'extlib') {
const genericWindow = window as any
if (!window.ai) {
genericWindow.ai = ai
}
if (!genericWindow.translation) {
genericWindow.translation = new Translation(ai)
genericWindow.translation = translation
}
genericWindow.aibrow = ai
}
Expand Down

0 comments on commit 86f2472

Please sign in to comment.