Skip to content

Commit

Permalink
Merge branch 'feat/firefox' into tmp/20241018
Browse files Browse the repository at this point in the history
  • Loading branch information
hz002 committed Oct 17, 2024
2 parents 0e5e1a2 + b7ef764 commit 7facda3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/background/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import {
CHAINS_ENUM,
EVENTS,
EVENTS_IN_BG,
IS_FIREFOX,
KEYRING_CATEGORY_MAP,
KEYRING_TYPE,
} from 'consts';
Expand Down Expand Up @@ -272,6 +273,9 @@ browser.runtime.onConnect.addListener((port) => {
null,
data.params
);
if (!IS_FIREFOX) {
return res;
}
if (typeof res?.then === 'function') {
return res.then((x) => {
if (typeof x !== 'object' || isNull(x)) {
Expand Down

0 comments on commit 7facda3

Please sign in to comment.