Skip to content

Commit

Permalink
chore: remove the window in service work
Browse files Browse the repository at this point in the history
  • Loading branch information
iosh committed Aug 8, 2024
1 parent 433afc3 commit 1f104f3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/rpcs/wallet_requestUnlockUI/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ export const permissions = {
}

async function requestUnlockUI({
Err: {Internal},
// Err: {Internal},
db: {getLocked, getUnlockReq, retract},
MODE,
}) {
if (!window) throw Internal('Invalid running env, window is not defined')
// if (!window) throw Internal('Invalid running env, window is not defined')
const {browser, popup} = await import('@fluent-wallet/webextension')
const w = await popup.show({
alwaysOnTop: MODE.isProd ? true : false,
Expand Down

0 comments on commit 1f104f3

Please sign in to comment.