Skip to content

Commit

Permalink
Fix bug with saving empty shortcuts.
Browse files Browse the repository at this point in the history
  • Loading branch information
crittermike committed Oct 5, 2020
1 parent 35f308a commit d5f5642
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app/options/options.vue
Original file line number Diff line number Diff line change
Expand Up @@ -213,8 +213,9 @@ export default {
methods: {
saveShortcuts: function() {
this.keys.forEach((key) => {
key.sitesArray = key.sites.split('\n')
delete key.sidebarOpen
key.sites = key.sites || "";
key.sitesArray = key.sites.split('\n');
delete key.sidebarOpen;
});
localStorage.shortkeys = JSON.stringify({keys: this.keys});
this.$buefy.snackbar.open(`Shortcuts have been saved!`);
Expand Down

0 comments on commit d5f5642

Please sign in to comment.