Skip to content

Commit

Permalink
save to localStorage before return from function
Browse files Browse the repository at this point in the history
  • Loading branch information
aakashdinkarh committed Oct 12, 2024
1 parent 227ddec commit db9359a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@
} catch {
isDarkThemeEnabled = true;
}
return isDarkThemeEnabled;
saveIsDarkThemeEnabledToLocalStorage(isDarkThemeEnabled);
return isDarkThemeEnabled;
}
</script>
</head>
Expand Down

0 comments on commit db9359a

Please sign in to comment.