Skip to content

Commit 0eb8c0a

Browse files
authored
fix: remove auto-open dashboard (#175)
* fix: remove auto-open dashboard * re-add the install redirect
1 parent 4a813a0 commit 0eb8c0a

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/background.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -171,8 +171,6 @@ chrome.alarms.onAlarm.addListener(async (alarm) => {
171171

172172
// INSTALLS / UPDATES
173173
chrome.runtime.onInstalled.addListener(async (details) => {
174-
chrome.tabs.create({ url: 'https://dashboard.walletguard.app' });
175-
176174
if (details.reason === 'install') {
177175
// TODO: Signin Anonymously
178176
} else if (details.reason === 'update') {
@@ -208,9 +206,9 @@ chrome.runtime.onInstalled.addListener(async (details) => {
208206

209207
// await checkAllWalletsAndCreateAlerts();
210208

211-
// if (process.env.NODE_ENV === 'production' && details.reason === 'install') {
212-
// openDashboard('install');
213-
// }
209+
if (process.env.NODE_ENV === 'production' && details.reason === 'install') {
210+
openDashboard('install');
211+
}
214212

215213
// Create a context menu item
216214
// chrome.contextMenus.create({

0 commit comments

Comments
 (0)