# HG changeset patch # User Olly Cope # Date 1687768903 0 # Mon Jun 26 08:41:43 2023 +0000 # Node ID 2c7e31cb49f653d6e09cae135444865e675f3bb8 # Parent 1a71941577f5d209c2777cf46dff06f1da75ed1d return early if placeholder is not defined diff --git a/skurvey/static/skurvey.js b/skurvey/static/skurvey.js --- a/skurvey/static/skurvey.js +++ b/skurvey/static/skurvey.js @@ -49,6 +49,9 @@ } var script = document.currentScript; function initSkurvey(placeholder, thankyou) { + if (!placeholder || !thankyou) { + return; + } var question = $question; var user = $user; var closeButton = E('span', {class: 'Skurvey-Close'}, ['—']);