Fix prefs saving for web version.