MCPcopy
hub / github.com/SnapDrop/snapdrop / _copyText

Method _copyText

client/scripts/ui.js:474–478  ·  view source on GitHub ↗
(message, notification)

Source from the content-addressed store, hash-verified

472 }
473
474 _copyText(message, notification) {
475 notification.close();
476 if (!navigator.clipboard.writeText(message)) return;
477 this._notify('Copied text to clipboard');
478 }
479
480 _bind(notification, handler) {
481 if (notification.then) {

Callers 1

_messageNotificationMethod · 0.95

Calls 1

_notifyMethod · 0.95

Tested by

no test coverage detected