Skip to content

Commit

Permalink
fix: fix bug of using randomstring
Browse files Browse the repository at this point in the history
  • Loading branch information
slient-coder committed May 26, 2023
1 parent dd504f4 commit 53d0f90
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/background/service/preference.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ class PreferenceService {
accountAlianNames: {},
uiCachedData: {},
skippedVersion: '',
deviceId: randomstring.randomstring.generate(10)
deviceId: randomstring.generate(10)
}
});
if (!this.store.locale || this.store.locale !== defaultLang) {
Expand Down Expand Up @@ -177,7 +177,7 @@ class PreferenceService {
}

if (!this.store.deviceId) {
this.store.deviceId = randomstring.randomstring.generate(10);
this.store.deviceId = randomstring.generate(10);
}
};

Expand Down

0 comments on commit 53d0f90

Please sign in to comment.