We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
null
font-size
Describe the bug
On page load, core.js looks in local storage for a font size:
core.js
clean-jsdoc-theme/static/scripts/core.js
Lines 408 to 418 in a69b404
When storage is empty, a key of null is returned and then stored with the current font size value:
The null entry is never updated, because clicking the "Change font size" button creates a new, proper key:
To Reproduce
https://ankdev.me
Expected behavior
A font-size key has the value 16
Screenshots
See description above
Desktop (please complete the following information):
Linux 4.19.0-20-amd64 #1 SMP Debian 4.19.235-1 (2022-03-17) x86_64 GNU/Linux
Additional context
This change will ensure the font size key is always a valid string:
--- a/static/scripts/core.js +++ b/static/scripts/core.js @@ -413,7 +413,7 @@ function updateFontSize(fontSize) { } updateFontSize(n); } else { - localStorage.setItem(fontSizeInLocalStorage, fontSize); + localStorage.setItem(fontSizeLocalStorageKey, fontSize); } })();
The text was updated successfully, but these errors were encountered:
Thanks, @rdipardo, it is beautiful that you have spotted this issue.
Sorry, something went wrong.
9872dc6
No branches or pull requests
Describe the bug
On page load,
core.js
looks in local storage for a font size:clean-jsdoc-theme/static/scripts/core.js
Lines 408 to 418 in a69b404
When storage is empty, a key of
null
is returned and then stored with the current font size value:The
null
entry is never updated, because clicking the "Change font size" button creates a new, proper key:To Reproduce
https://ankdev.me
domainnull
key has the value 16Expected behavior
A
font-size
key has the value 16Screenshots
See description above
Desktop (please complete the following information):
Linux 4.19.0-20-amd64 #1 SMP Debian 4.19.235-1 (2022-03-17) x86_64 GNU/Linux
Additional context
This change will ensure the font size key is always a valid string:
The text was updated successfully, but these errors were encountered: