From 0338fd42e15ee9803068e6d6eeb04d78b94f321c Mon Sep 17 00:00:00 2001 From: Omar Roth Date: Sun, 5 May 2019 07:46:01 -0500 Subject: Add support for Web notifications --- assets/js/embed.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'assets/js/embed.js') diff --git a/assets/js/embed.js b/assets/js/embed.js index cbf21a58..12530fbe 100644 --- a/assets/js/embed.js +++ b/assets/js/embed.js @@ -1,4 +1,4 @@ -function get_playlist(plid, timeouts = 0) { +function get_playlist(plid, timeouts) { if (timeouts > 10) { console.log('Failed to pull playlist'); return; @@ -53,7 +53,7 @@ function get_playlist(plid, timeouts = 0) { xhr.ontimeout = function () { console.log('Pulling playlist timed out.'); - get_playlist(plid, timeouts + 1); + get_playlist(plid, timeouts++); } } -- cgit v1.2.3