Skip to content

Commit 1f104f3

Browse files
committed
chore: remove the window in service work
1 parent 433afc3 commit 1f104f3

File tree

1 file changed

+2
-2
lines changed
  • packages/rpcs/wallet_requestUnlockUI

1 file changed

+2
-2
lines changed

packages/rpcs/wallet_requestUnlockUI/index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ export const permissions = {
1313
}
1414

1515
async function requestUnlockUI({
16-
Err: {Internal},
16+
// Err: {Internal},
1717
db: {getLocked, getUnlockReq, retract},
1818
MODE,
1919
}) {
20-
if (!window) throw Internal('Invalid running env, window is not defined')
20+
// if (!window) throw Internal('Invalid running env, window is not defined')
2121
const {browser, popup} = await import('@fluent-wallet/webextension')
2222
const w = await popup.show({
2323
alwaysOnTop: MODE.isProd ? true : false,

0 commit comments

Comments
 (0)