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

Method _messageNotification

client/scripts/ui.js:449–459  ·  view source on GitHub ↗
(message)

Source from the content-addressed store, hash-verified

447 }
448
449 _messageNotification(message) {
450 if (document.visibilityState !== 'visible') {
451 if (isURL(message)) {
452 const notification = this._notify(message, 'Click to open link');
453 this._bind(notification, e => window.open(message, '_blank', null, true));
454 } else {
455 const notification = this._notify(message, 'Click to copy text');
456 this._bind(notification, e => this._copyText(message, notification));
457 }
458 }
459 }
460
461 _downloadNotification(message) {
462 if (document.visibilityState !== 'visible') {

Callers 1

constructorMethod · 0.95

Calls 4

_notifyMethod · 0.95
_bindMethod · 0.95
_copyTextMethod · 0.95
isURLFunction · 0.85

Tested by

no test coverage detected