mirror of
https://github.com/vladmandic/automatic
synced 2026-09-19 09:14:35 +02:00
js optimizations
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
let lastHeadImg = null;
|
||||
let notificationButton = null;
|
||||
|
||||
onUiUpdate(function () {
|
||||
onAfterUiUpdate(function () {
|
||||
if (!notificationButton) {
|
||||
notificationButton = gradioApp().getElementById('request_notifications');
|
||||
if (notificationButton) notificationButton.addEventListener('click', (evt) => Notification.requestPermission(), true);
|
||||
|
||||
Reference in New Issue
Block a user