Skip to content

Commit

Permalink
MFD.js: set default language if none set
Browse files Browse the repository at this point in the history
  • Loading branch information
0xCAFEDECAF committed May 11, 2024
1 parent ef67904 commit 8628d85
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions VanLiveConnect/MFD.js.ino
Original file line number Diff line number Diff line change
Expand Up @@ -6992,6 +6992,8 @@ function setUnits(distanceUnit, temperatureUnit, timeUnit)
// To be called by the body "onload" event
function htmlBodyOnLoad()
{
if (! localStorage.mfdLanguage) localStorage.mfdLanguage = "set_language_english";
setColorTheme(localStorage.colorTheme, localStorage.colorPalette);
initDimLevel();
setUnits(localStorage.mfdDistanceUnit, localStorage.mfdTemperatureUnit, localStorage.mfdTimeUnit);
Expand Down
Binary file modified VanLiveConnect/data/MFD.js.gz
Binary file not shown.

0 comments on commit 8628d85

Please sign in to comment.