Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
init() {
this._super(...arguments);
this.set('counter', +window.localStorage.getItem('counter') || 1);
},
increment() {
this.incrementProperty('counter');
window.localStorage.setItem('counter', this.get('counter'));
}
}