MCPcopy Create free account
hub / github.com/firebase/quickstart-js / showHideDiv

Function showHideDiv

messaging/main.ts:74–81  ·  view source on GitHub ↗
(divId: string, show: boolean)

Source from the content-addressed store, hash-verified

72}
73
74function showHideDiv(divId: string, show: boolean) {
75 const div = document.querySelector('#' + divId)! as HTMLDivElement;
76 if (show) {
77 div.style.display = 'block';
78 } else {
79 div.style.display = 'none';
80 }
81}
82
83function requestPermission() {
84 console.log('Requesting permission...');

Callers 2

updateUIForPushEnabledFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected