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

Method _downloadNotification

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

Source from the content-addressed store, hash-verified

459 }
460
461 _downloadNotification(message) {
462 if (document.visibilityState !== 'visible') {
463 const notification = this._notify(message, 'Click to download');
464 if (!window.isDownloadSupported) return;
465 this._bind(notification, e => this._download(notification));
466 }
467 }
468
469 _download(notification) {
470 document.querySelector('x-dialog [download]').click();

Callers 1

constructorMethod · 0.95

Calls 3

_notifyMethod · 0.95
_bindMethod · 0.95
_downloadMethod · 0.95

Tested by

no test coverage detected