Skip to content

Commit

Permalink
use local-storage service as 'ls' just to see that it works
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelchadwick committed Aug 19, 2024
1 parent 1867792 commit 20b07ad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/frontend/app/components/debug.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ export default class DebugComponent extends Component {
@tracked app = ENV.APP;
@tracked isExpanded = this.args.isExpanded;

@service localStorage;
@service('local-storage') ls;

@action
saveDebugVisibility() {
this.isExpanded = !this.isExpanded;

this.localStorage.set('debugExpanded', this.isExpanded);
this.ls.set('debugExpanded', this.isExpanded);
}
}

0 comments on commit 20b07ad

Please sign in to comment.