KoalaSat 9bda934ee5 Android Tor icon and copy to clipboard (#269)
* Android Clipboard and Tor Status Icon

* working clipboard and lintern

* Fix

* Add style for Tor connection component

* Fix Freeze and Internet out

* Fix Typo

Co-authored-by: Reckless_Satoshi <reckless.satoshi@protonmail.com>
2022-10-07 14:10:21 +00:00

21 lines
493 B
TypeScript

import { SystemClient } from '..';
import NativeRobosats from '../../Native';
class SystemNativeClient implements SystemClient {
constructor() {
if (!window.NativeRobosats) {
window.NativeRobosats = new NativeRobosats();
}
}
public copyToClipboard: (value: string) => void = (value) => {
return window.NativeRobosats?.postMessage({
category: 'system',
type: 'copyToClipboardString',
detail: value,
});
};
}
export default SystemNativeClient;