diff --git a/frontend/src/models/Settings.model.ts b/frontend/src/models/Settings.model.ts index d837abfc..cbb0ed7a 100644 --- a/frontend/src/models/Settings.model.ts +++ b/frontend/src/models/Settings.model.ts @@ -43,13 +43,11 @@ class BaseSettings { : i18n.resolvedLanguage.substring(0, 2); const networkCookie = systemClient.getItem('settings_network'); - this.network = networkCookie && networkCookie !== '' ? networkCookie : 'mainnet'; this.host = getHost(); const useProxy = systemClient.getItem('settings_use_proxy'); - this.useProxy = - useProxy === 'true' || (useProxy !== 'false' && window.NativeRobosats !== undefined); + this.useProxy = window.NativeRobosats !== undefined && useProxy !== 'false'; apiClient.useProxy = this.useProxy; } diff --git a/frontend/src/services/System/SystemNativeClient/index.ts b/frontend/src/services/System/SystemNativeClient/index.ts index c426442a..9f554c3a 100644 --- a/frontend/src/services/System/SystemNativeClient/index.ts +++ b/frontend/src/services/System/SystemNativeClient/index.ts @@ -28,7 +28,7 @@ class SystemNativeClient implements SystemClient { }; public setCookie: (key: string, value: string) => void = (key, value) => { - delete window.NativeRobosats?.cookies[key]; + window.NativeRobosats?.loadCookie({ key, value }); void window.NativeRobosats?.postMessage({ category: 'system', type: 'setCookie', diff --git a/frontend/src/utils/federationLottery.ts b/frontend/src/utils/federationLottery.ts index 4768e256..da49be3b 100644 --- a/frontend/src/utils/federationLottery.ts +++ b/frontend/src/utils/federationLottery.ts @@ -45,7 +45,6 @@ export default function federationLottery(federation: Federation): string[] { // federation[shortAlias] = { badges:{ donatesToDevFund }}; // } -// console.log(federation) // return federation; // } @@ -58,5 +57,4 @@ export default function federationLottery(federation: Federation): string[] { // results.push(rankedCoordinators); // } -// console.log(results) // } diff --git a/mobile/App.tsx b/mobile/App.tsx index d61444be..e2977573 100644 --- a/mobile/App.tsx +++ b/mobile/App.tsx @@ -71,6 +71,7 @@ const App = () => { loadCookie('settings_mode'); loadCookie('settings_light_qr'); loadCookie('settings_network'); + loadCookie('settings_use_proxy'); loadCookie('garage_slots').then(() => injectMessageResolve(responseId)); };