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

Method _requestPermission

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

Source from the content-addressed store, hash-verified

410 }
411
412 _requestPermission() {
413 Notification.requestPermission(permission => {
414 if (permission !== 'granted') {
415 Events.fire('notify-user', Notifications.PERMISSION_ERROR || 'Error');
416 return;
417 }
418 this._notify('Even more snappy sharing!');
419 this.$button.setAttribute('hidden', 1);
420 });
421 }
422
423 _notify(message, body) {
424 const config = {

Callers 1

constructorMethod · 0.95

Calls 2

_notifyMethod · 0.95
fireMethod · 0.80

Tested by

no test coverage detected