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

Method constructor

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

Source from the content-addressed store, hash-verified

381
382class Toast extends Dialog {
383 constructor() {
384 super('toast');
385 Events.on('notify-user', e => this._onNotfiy(e.detail));
386 }
387
388 _onNotfiy(message) {
389 this.$el.textContent = message;

Callers

nothing calls this directly

Calls 2

_onNotfiyMethod · 0.95
onMethod · 0.80

Tested by

no test coverage detected