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