Skip to content

Commit

Permalink
v2.2.5: Fixed enumerateSettings bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul Ellis committed Jan 27, 2022
1 parent 25635e4 commit 4c480ad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/player.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<title>player.html</title>
<meta charset='utf-8'>
<meta name='description' content='Drop player.html in a folder of videos and play them on the web' />
<meta name='version' content='2.2.4'>
<meta name='version' content='2.2.5'>
<meta name='Copyright' content='©2021 Paul Ellis'>
<meta name='license' content='https://opensource.org/licenses/MIT'>
<meta name='apple-mobile-web-app-status-bar-style' content='black'>
Expand Down Expand Up @@ -3443,6 +3443,7 @@
};
const persistSetting = (key, value) => storageStore(`setting-${key}`, value);
const clearSetting = (key) => storageRemove(`setting-${key}`);
const enumerateSettings = () => Object.keys(localStorage).filter((key) => key.startsWith('setting-')).map((key) => key.replace('setting-', ''));
const resetSettings = () => {
const settings = enumerateSettings();
settings.forEach((setting) => {
Expand All @@ -3466,7 +3467,6 @@
};
checkIncorrectDefaultHue();

const enumerateSettings = () => Object.keys(localStorage).filter((key) => key.startsWith('setting-')).map((key) => key.replace('setting-', ''));

const settings = {
hue: {
Expand Down

0 comments on commit 4c480ad

Please sign in to comment.