feat: Add continuous Bible reading mode, backend-driven translation API integration, localized book names, and preference caching
This commit is contained in:
12
API.js
12
API.js
@@ -1,6 +1,6 @@
|
||||
import i18n from "./i18nMessages.js";
|
||||
const baseUrl = "https://emiapi.reynafamily.com";
|
||||
//const baseUrl = "http://localhost:3000";
|
||||
//const baseUrl = "https://emiapi.reynafamily.com";
|
||||
const baseUrl = "http://localhost:3000";
|
||||
const requestErrorCooldownMs = 30000;
|
||||
const profileFailureCooldownMs = 60000;
|
||||
const recentRequestErrors = {};
|
||||
@@ -367,6 +367,14 @@ const API = {
|
||||
return getCall("/user/" + profileid + "/unfollow");
|
||||
},
|
||||
setDataValue(key, value){
|
||||
if (CurrentProfile && userNameCache[CurrentProfile]) {
|
||||
if (!userNameCache[CurrentProfile].data) userNameCache[CurrentProfile].data = {};
|
||||
userNameCache[CurrentProfile].data[key] = value;
|
||||
}
|
||||
if (CurrentProfileData) {
|
||||
if (!CurrentProfileData.data) CurrentProfileData.data = {};
|
||||
CurrentProfileData.data[key] = value;
|
||||
}
|
||||
return postCall("/user/setData", {key, value});
|
||||
},
|
||||
//Groups
|
||||
|
||||
Reference in New Issue
Block a user