Make prefs saving work on iOS web app