MCPcopy Index your code
hub / github.com/SnapDrop/snapdrop / _onCopy

Method _onCopy

client/scripts/ui.js:376–379  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

374 }
375
376 async _onCopy() {
377 await navigator.clipboard.writeText(this.$text.textContent);
378 Events.fire('notify-user', 'Copied to clipboard');
379 }
380}
381
382class Toast extends Dialog {

Callers 1

constructorMethod · 0.95

Calls 1

fireMethod · 0.80

Tested by

no test coverage detected