(clipContent, type_ = 'text')
| 1438 | |
| 1439 | // send clipboard content |
| 1440 | const sendClipBoard = async (clipContent, type_ = 'text') => { |
| 1441 | if (server_mode === 'P2S') { |
| 1442 | await sendClipBoardP2S(clipContent, type_); |
| 1443 | } else if (server_mode === 'P2P') { |
| 1444 | await sendClipBoardP2P(clipContent, type_); |
| 1445 | } |
| 1446 | }; |
| 1447 | |
| 1448 | // terminate service when wsIsRunning is false |
| 1449 | const stopServices = async () => { |
no outgoing calls
no test coverage detected