PHRAS-3528 fix download zip loop

This commit is contained in:
aynsix
2021-10-11 15:58:44 +03:00
parent 0d07c8fb84
commit 47d7c6e8d7

View File

@@ -416,10 +416,13 @@
});
});
/**manage session and redirect to login page**/
var usr_id = '{{ app.getAuthenticator().user.getId }}';
var module = '{{ module }}';
// no need to launch pollNotifications if not connected on load page
{% if app.getAuthenticator().isAuthenticated() %}
/**manage session and redirect to login page**/
var usr_id = '{{ app.getAuthenticator().user.getId }}';
var module = '{{ module }}';
// start pooling recursively
window.setTimeout( function() { commonModule.pollNotifications(usr_id, module === 'prod', true); }, 2000);
// start pooling recursively
window.setTimeout( function() { commonModule.pollNotifications(usr_id, module === 'prod', true); }, 2000);
{% endif %}
</script>