Skip to content

Commit

Permalink
remove side panel permission on prod
Browse files Browse the repository at this point in the history
  • Loading branch information
pacoccino committed Feb 27, 2024
1 parent d495675 commit 9590278
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion packages/extension/manifest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,16 @@ const key = 'MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAooxazoYOiipPPhgI58FzWgy

export default defineManifest(async (env) => {
let connect_srcs = connect_srcs_prod
let permissions = [
"storage",
]
let side_panel: any = undefined
if (env.mode === 'development') {
connect_srcs = connect_srcs.concat(connect_srcs_dev)
side_panel = {
default_path: "src/side_panel/page.html",
}
permissions.push("sidePanel")
}
return {
manifest_version: 3,
Expand Down Expand Up @@ -56,7 +60,6 @@ export default defineManifest(async (env) => {
},
permissions: [
"storage",
"sidePanel"
],
externally_connectable: {
matches: externally_connectable_urls,
Expand Down
2 changes: 1 addition & 1 deletion packages/extension/src/lib/AIMaskService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ export class AIMaskService {
if (await database.get('status') === 'infering') throw new Error('already infering')

try {
await database.set('status', 'infering')
const inferer = await this.getInferer(params)
await database.set('status', 'infering')
const response = await inferer.infer(params, streamhandler)
return response
} catch (e) {
Expand Down

0 comments on commit 9590278

Please sign in to comment.