Skip to content

Commit

Permalink
minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
atharva-kakarot committed Jun 20, 2024
1 parent cb8f68b commit 3887136
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,8 @@ function localStorageFunc(str) {
str.format = format[str.format] || str.format;
localStorage.setItem("format", str.format);

document.body.scrollTo(0,0);

const localStorageState = {};
for (let i = 0; i < localStorage.length; i++) {
const key = localStorage.key(i);
Expand Down Expand Up @@ -941,7 +943,7 @@ function animeAboutDiv() {

function capitalizeFirstLetter(str) {
if (str === "null") {
return "Unavailable";
return "N/A";
}

return str.replace(/\w/, function (char) {
Expand All @@ -951,7 +953,7 @@ function animeAboutDiv() {

function nullfunc(str) {
if (str === "null") {
return "Unavailable";
return "N/A";
}
else {
return str;
Expand Down

0 comments on commit 3887136

Please sign in to comment.