From e920d735bed335cb733df95fb87d84dd9b467e31 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Jul 14 2017 20:36:33 +0000 Subject: Fix the JS syntax on the wait page Signed-off-by: Pierre-Yves Chibon --- diff --git a/pagure/templates/waiting.html b/pagure/templates/waiting.html index 61f50b5..e183e73 100644 --- a/pagure/templates/waiting.html +++ b/pagure/templates/waiting.html @@ -59,7 +59,7 @@ function check_task_status(){ }, error: function() { var _url = '{{ url_for("wait_task", taskid=task.id, prev=prev) | safe }}'; - _url += _url.contains('?') ? '&' : '?'; + _url += _url.includes('?') ? '&' : '?'; _url += 'count=' + _cnt; console.log('Sending to ' + _url); window.location = _url;