Commit e07c5896 authored by okhin's avatar okhin 🚴

Back tothe previousway of globals

parent 383fdb1f
Pipeline #811 passed with stage
in 1 second
......@@ -73,6 +73,7 @@
<script type="text/javascript">
var call = JSON.parse('{{ @call | raw }}');
var call_url = call['data']['url'];
var interval = None;
function normalize_phone(phone) {
if (phone.startsWith('+')) {
return phone.replace('+', '00');
......@@ -161,6 +162,6 @@
};
$(document).ready(function() {
update_call(call);
var window.interval = window.setInterval(fetch, 3000);
interval = window.setInterval(fetch, 3000);
});
</script>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment