diff --git a/resources/static/include_js/include.js b/resources/static/include_js/include.js index 66b5f9a2bd0f3ba690ef307a6009d9644e4967be..89043778a4ca27ad2a26f35e4af2af14b53b52df 100644 --- a/resources/static/include_js/include.js +++ b/resources/static/include_js/include.js @@ -1076,13 +1076,25 @@ } } + function warn(message) { + try { + console.warn(message); + } catch(e) { + /* ignore error */ + } + } + function internalRequest(options) { if (options.requiredEmail) { - try { - console.log("requiredEmail has been deprecated"); - } catch(e) { - /* ignore error */ - } + warn("requiredEmail has been deprecated"); + } + + if (options.termsOfService && !options.privacyPolicy) { + warn("termsOfService ignored unless privacyPolicy also defined"); + } + + if (options.privacyPolicy && !options.termsOfService) { + warn("privacyPolicy ignored unless termsOfService also defined"); } // focus an existing window