Add pwa support
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
|
||||
func Components.QueueSZ(tytd)
|
||||
{
|
||||
var vid = tytd.CurrentVideo;
|
||||
tytd.Mutex.Lock();
|
||||
|
||||
|
||||
var html = <span hx-trigger="every 5000ms" hx-target="this" hx-push-url="false" hx-indicator="none" hx-get="./queue-size" hx-swap="outerHTML" class="badge">{tytd.VideoQueueCount}</span>;
|
||||
|
||||
tytd.Mutex.Unlock();
|
||||
return html;
|
||||
}
|
||||
Reference in New Issue
Block a user