Skip to content

Commit

Permalink
Added default settings object
Browse files Browse the repository at this point in the history
  • Loading branch information
Nemeyteth committed Oct 31, 2020
1 parent d142557 commit 8ec2c61
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/getfives.js
Original file line number Diff line number Diff line change
Expand Up @@ -177,9 +177,9 @@ async function init(entryPoint) {
isClicked = true;

getSettings('settings').then((settings) => {
Settings = settings;
keyInput.value = settings.togglKey ? settings.togglKey : '';
rateInput.value = settings.rate ? settings.rate : '';
Settings = settings || {};
keyInput.value = Settings.togglKey ? Settings.togglKey : '';
rateInput.value = Settings.rate ? Settings.rate : '';
keyInput.dispatchEvent(new Event('input'));
});

Expand Down

0 comments on commit 8ec2c61

Please sign in to comment.