return early if placeholder is not defined
1 files changed, 3 insertions(+), 0 deletions(-) M skurvey/static/skurvey.js
M skurvey/static/skurvey.js +3 -0
@@ 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'}, ['—']);