From c371ffb5974d8dccaec76c78dfa91dd54fcc624e Mon Sep 17 00:00:00 2001 From: azivner Date: Thu, 16 Nov 2017 19:25:27 -0500 Subject: [PATCH] fix browser error --- public/javascripts/init.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/javascripts/init.js b/public/javascripts/init.js index c777b765f..8517163bc 100644 --- a/public/javascripts/init.js +++ b/public/javascripts/init.js @@ -116,7 +116,7 @@ function initAjax() { $.ajaxSetup({ headers: { 'x-browser-id': browserId, - 'x-protected-session-id': protected_session ? protected_session.getProtectedSessionId() : null + 'x-protected-session-id': typeof protected_session !== 'undefined' ? protected_session.getProtectedSessionId() : null } }); }