Skip to content

Commit 35a2cd2

Browse files
authored
Merge pull request #670 from enkryptcom/fix/cgid-and-ff
fix: cgid and ff
2 parents caeaeef + 8543146 commit 35a2cd2

5 files changed

Lines changed: 9 additions & 4 deletions

File tree

packages/extension/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@enkryptcom/extension",
3-
"version": "2.5.0",
3+
"version": "2.5.1",
44
"private": true,
55
"type": "module",
66
"scripts": {

packages/extension/src/libs/utils/open-onboard.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export const openPrivacy = () => {
88
};
99
export default () => {
1010
const onboardURL = Browser.runtime.getURL('onboard.html');
11-
Browser.tabs.create({
11+
return Browser.tabs.create({
1212
url: onboardURL,
1313
});
1414
};

packages/extension/src/providers/ethereum/networks/coti.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ const coti: EvmNetworkOptions = {
1515
currencyName: 'COTI',
1616
currencyNameLong: 'COTI',
1717
node: 'https://mainnet.coti.io/rpc',
18+
coingeckoID: 'coti',
1819
icon,
1920
activityHandler: wrapActivityHandler(EtherscanActivity),
2021
};

packages/extension/src/ui/action/App.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,9 @@ onMounted(async () => {
296296
menuStore.init();
297297
fetchAndSetRates();
298298
} else {
299-
openOnboard();
299+
openOnboard().then(() => {
300+
window.close();
301+
});
300302
}
301303
});
302304

packages/extension/src/ui/action/views/reset-wallet/index.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,9 @@ const resetAction = async () => {
6868
const keyring = new KeyRingBase();
6969
await keyring.reset();
7070
emit('action:lock');
71-
openOnboard();
71+
openOnboard().then(() => {
72+
window.close();
73+
});
7274
};
7375
</script>
7476

0 commit comments

Comments
 (0)