diff --git a/resources/static/include_js/include.js b/resources/static/include_js/include.js index e105db971801c0b3ca662fcdee47ec1af0bc12e1..45d5725cb0d137445a69ae918ec98d624e5ebe40 100644 --- a/resources/static/include_js/include.js +++ b/resources/static/include_js/include.js @@ -1029,12 +1029,16 @@ // back compat support for loggedInEmail if (typeof options.loggedInEmail !== 'undefined' && - typeof options.loggedInUser !== 'undefined') - { + typeof options.loggedInUser !== 'undefined') { throw "you cannot supply *both* loggedInEmail and loggedInUser"; } - else if(typeof options.loggedInEmail !== 'undefined') - { + else if(typeof options.loggedInEmail !== 'undefined') { + try { + console.log("loggedInEmail has been deprecated"); + } catch(e) { + /* ignore error */ + } + options.loggedInUser = options.loggedInEmail; delete options.loggedInEmail; }