mirror of
https://github.com/streamyfin/streamyfin.git
synced 2025-08-20 18:37:18 +02:00
fix: default values
This commit is contained in:
@@ -21,7 +21,11 @@ const loadSettings = async (): Promise<Settings> => {
|
||||
const jsonValue = await AsyncStorage.getItem("settings");
|
||||
return jsonValue != null
|
||||
? JSON.parse(jsonValue)
|
||||
: { theme: "light", notificationsEnabled: true, language: "en" };
|
||||
: {
|
||||
autoRotate: true,
|
||||
forceLandscapeInVideoPlayer: false,
|
||||
openFullScreenVideoPlayerByDefault: false,
|
||||
};
|
||||
};
|
||||
|
||||
// Utility function to save settings to AsyncStorage
|
||||
|
||||
Reference in New Issue
Block a user