(proxy)
| 7264 | |
| 7265 | |
| 7266 | function bindMenuToggle() { |
| 7267 | async function toggleFullscreen() { |
| 7268 | try { |
| 7269 | if (!document.fullscreenElement) await document.documentElement.requestFullscreen(); |
| 7270 | else await document.exitFullscreen(); |
| 7271 | } catch (err) { handleError(err); } |
| 7272 | } |
| 7273 | var fullButton = document.getElementById('fullscreenTopBtn'); |
| 7274 | if (fullButton) fullButton.addEventListener('click', function(event){ event.stopPropagation(); toggleFullscreen(); }); |
| 7275 | var mobileFull = document.getElementById('mobileFullscreenBtn'); |
| 7276 | if (mobileFull) mobileFull.addEventListener('click', function(event){ event.stopPropagation(); toggleFullscreen(); }); |
| 7277 | var mobileNotifications = document.getElementById('mobileNotificationsBtn'); |
| 7278 | if (mobileNotifications) mobileNotifications.addEventListener('click', async function(){ |
| 7279 | try { var data=await apiGet('/api/notifications'); renderNotificationsPanel((data.notifications && data.notifications.items) || []); } catch(err){ handleError(err); } |
no outgoing calls
no test coverage detected