mirror of
https://github.com/RoboSats/robosats.git
synced 2025-02-21 20:59:01 +00:00
Revert lint fix
This commit is contained in:
parent
ded1bdb764
commit
f3d36fb95e
@ -18,7 +18,7 @@ const App = () => {
|
|||||||
const uri = (Platform.OS === 'android' ? 'file:///android_asset/' : '') + 'Web.bundle/index.html';
|
const uri = (Platform.OS === 'android' ? 'file:///android_asset/' : '') + 'Web.bundle/index.html';
|
||||||
|
|
||||||
const injectMessageResolve = (id: string, data?: object) => {
|
const injectMessageResolve = (id: string, data?: object) => {
|
||||||
const json = JSON.stringify(data != null || {});
|
const json = JSON.stringify(data || {});
|
||||||
webViewRef.current?.injectJavaScript(
|
webViewRef.current?.injectJavaScript(
|
||||||
`(function() {window.NativeRobosats.onMessageResolve(${id}, ${json});})();`,
|
`(function() {window.NativeRobosats.onMessageResolve(${id}, ${json});})();`,
|
||||||
);
|
);
|
||||||
@ -119,7 +119,7 @@ const App = () => {
|
|||||||
if (state.isInternetReachable) {
|
if (state.isInternetReachable) {
|
||||||
try {
|
try {
|
||||||
daemonStatus = await torClient.daemon.getDaemonStatus();
|
daemonStatus = await torClient.daemon.getDaemonStatus();
|
||||||
} catch { }
|
} catch {}
|
||||||
}
|
}
|
||||||
|
|
||||||
injectMessage({
|
injectMessage({
|
||||||
|
Loading…
Reference in New Issue
Block a user