mirror of
https://github.com/RoboSats/robosats.git
synced 2024-09-11 14:05:51 +03:00
Small fixes
This commit is contained in:
parent
8f9690b681
commit
7e5c9bcb70
@ -159,7 +159,7 @@ const SettingsForm = ({ dense = false, showNetwork = false }: SettingsFormProps)
|
|||||||
onChange={(e) => {
|
onChange={(e) => {
|
||||||
const lightQRs = !e.target.checked;
|
const lightQRs = !e.target.checked;
|
||||||
setSettings({ ...settings, lightQRs });
|
setSettings({ ...settings, lightQRs });
|
||||||
systemClient.setItem('settings_lightQRs', lightQRs);
|
systemClient.setItem('settings_light_qr', String(lightQRs));
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
}
|
}
|
||||||
|
@ -30,7 +30,7 @@ class BaseSettings {
|
|||||||
? 'dark'
|
? 'dark'
|
||||||
: 'light';
|
: 'light';
|
||||||
|
|
||||||
this.lightQRs = systemClient.getItem('settings_lightQRs') === 'true';
|
this.lightQRs = systemClient.getItem('settings_light_qr') === 'true';
|
||||||
|
|
||||||
const languageCookie = systemClient.getItem('settings_language');
|
const languageCookie = systemClient.getItem('settings_language');
|
||||||
this.language =
|
this.language =
|
||||||
|
@ -14,10 +14,11 @@ class ApiNativeClient implements ApiClient {
|
|||||||
headers = {
|
headers = {
|
||||||
...headers,
|
...headers,
|
||||||
...{
|
...{
|
||||||
Authorization: `Token ${tokenSHA256.substring(0, 40)}`,
|
Authorization: `Token ${tokenSHA256}`,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
const encrypted_private_key = systemClient.getCookie('encrypted_private_key');
|
const encrypted_private_key = systemClient.getCookie('encrypted_private_key');
|
||||||
const public_key = systemClient.getCookie('public_key');
|
const public_key = systemClient.getCookie('public_key');
|
||||||
|
|
||||||
|
@ -10,7 +10,7 @@ class ApiWebClient implements ApiClient {
|
|||||||
headers = {
|
headers = {
|
||||||
...headers,
|
...headers,
|
||||||
...{
|
...{
|
||||||
Authorization: `Token ${tokenSHA256.substring(0, 40)}`,
|
Authorization: `Token ${tokenSHA256}`,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -43,12 +43,11 @@ const App = () => {
|
|||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
EncryptedStorage.removeItem('sessionid');
|
|
||||||
loadCookie('robot_token');
|
loadCookie('robot_token');
|
||||||
loadCookie('settings_fontsize_basic');
|
loadCookie('settings_fontsize_basic');
|
||||||
loadCookie('settings_language');
|
loadCookie('settings_language');
|
||||||
loadCookie('settings_mode');
|
loadCookie('settings_mode');
|
||||||
loadCookie('settings_lightQRs');
|
loadCookie('settings_light_qr');
|
||||||
loadCookie('settings_network');
|
loadCookie('settings_network');
|
||||||
loadCookie('garage').then(() => injectMessageResolve(responseId));
|
loadCookie('garage').then(() => injectMessageResolve(responseId));
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user