mirror of
https://github.com/RoboSats/robosats.git
synced 2025-07-23 23:13:25 +00:00

* 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>
21 lines
493 B
TypeScript
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;
|