Skip to content

Commit

Permalink
build: disable userGuideService.
Browse files Browse the repository at this point in the history
  • Loading branch information
richardo2016x committed Dec 20, 2024
1 parent 905ef37 commit 4441014
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 11 deletions.
4 changes: 2 additions & 2 deletions src/background/controller/wallet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ export class WalletController extends BaseController {
/* wallet */
boot = async (password: string) => {
await keyringService.boot(password);
userGuideService.destroy();
// userGuideService.destroy();
const hasOtherProvider = preferenceService.getHasOtherProvider();
const isDefaultWallet = preferenceService.getIsDefaultWallet();
if (!hasOtherProvider) {
Expand Down Expand Up @@ -4958,7 +4958,7 @@ export class WalletController extends BaseController {
if (this.isBooted()) {
return false;
}
await userGuideService.activeUserGuide();
// await userGuideService.activeUserGuide();
return true;
};

Expand Down
18 changes: 9 additions & 9 deletions src/background/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,9 +130,9 @@ async function restoreAppState() {
startEnableUser();
walletController.syncMainnetChainList();

if (!keyringService.isBooted()) {
userGuideService.init();
}
// if (!keyringService.isBooted()) {
// userGuideService.init();
// }

eventBus.addEventListener(EVENTS_IN_BG.ON_TX_COMPLETED, ({ address }) => {
if (!address) return;
Expand Down Expand Up @@ -428,10 +428,10 @@ function startEnableUser() {

// On first install, open a new tab with Rabby
async function onInstall() {
const storeAlreadyExisted = await userGuideService.isStorageExisted();
// If the store doesn't exist, then this is the first time running this script,
// and is therefore an install
if (!storeAlreadyExisted) {
await userGuideService.openUserGuide();
}
// const storeAlreadyExisted = await userGuideService.isStorageExisted();
// // If the store doesn't exist, then this is the first time running this script,
// // and is therefore an install
// if (!storeAlreadyExisted) {
// await userGuideService.openUserGuide();
// }
}
1 change: 1 addition & 0 deletions src/background/service/userGuide.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,4 +60,5 @@ class UserGuideService {
};
}

/** @deprecated not enabled for desktop */
export const userGuideService = new UserGuideService();

0 comments on commit 4441014

Please sign in to comment.