From 83878d6b052918bb5534a150918ad1a2a3124afe Mon Sep 17 00:00:00 2001 From: n1474335 Date: Tue, 23 May 2017 16:53:37 +0100 Subject: [PATCH] Update ControlsWaiter.js --- src/web/ControlsWaiter.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/web/ControlsWaiter.js b/src/web/ControlsWaiter.js index 3ba4f86b..87545df8 100755 --- a/src/web/ControlsWaiter.js +++ b/src/web/ControlsWaiter.js @@ -355,9 +355,11 @@ ControlsWaiter.prototype.supportButtonClick = function() { const reportBugInfo = document.getElementById("report-bug-info"); const saveLink = this.generateStateUrl(true, true, null, "https://gchq.github.io/CyberChef/"); - reportBugInfo.innerHTML = "* CyberChef compile time: " + COMPILE_TIME + "\n" + - "* User-Agent: \n" + navigator.userAgent + "\n" + - "* [Link to reproduce](" + saveLink + ")\n\n"; + if (reportBugInfo) { + reportBugInfo.innerHTML = "* CyberChef compile time: " + COMPILE_TIME + "\n" + + "* User-Agent: \n" + navigator.userAgent + "\n" + + "* [Link to reproduce](" + saveLink + ")\n\n"; + } }; export default ControlsWaiter;