Merge branch 'master' into PHRAS-3543-update-ubuntu-14-image

This commit is contained in:
Nicolas Maillat
2021-10-14 15:37:46 +02:00
committed by GitHub

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>