Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sharkykh committed Mar 3, 2022
1 parent 58c86f4 commit 2eb8659
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "tppm",
"version": "0.3.33",
"version": "0.3.34",
"description": "Trakt Playback Progress Manager",
"author": "sharkykh",
"license": "MIT",
Expand Down
6 changes: 2 additions & 4 deletions src/components/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -84,14 +84,12 @@ export default Vue.extend({
let storedProfile = {};
try {
storedProfile = JSON.parse(window.localStorage.getItem(TRAKT_PROFILE));
storedProfile = JSON.parse(window.localStorage.getItem(TRAKT_PROFILE)) || {};
} catch (_) {}
if (storedProfile.username) {
this.setProfile(storedProfile);
}
if (fetch && !storedProfile) {
} else if (fetch) {
await this.fetchProfile();
}
} catch (error) {
Expand Down

0 comments on commit 2eb8659

Please sign in to comment.