MCPcopy Create free account
hub / github.com/SnapDrop/snapdrop / visibilitychangeHandler

Method visibilitychangeHandler

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

Source from the content-addressed store, hash-verified

436
437 // Notification is persistent on Android. We have to close it manually
438 const visibilitychangeHandler = () => {
439 if (document.visibilityState === 'visible') {
440 notification.close();
441 Events.off('visibilitychange', visibilitychangeHandler);
442 }
443 };
444 Events.on('visibilitychange', visibilitychangeHandler);
445
446 return notification;

Callers

nothing calls this directly

Calls 1

offMethod · 0.80

Tested by

no test coverage detected