From dea4bf39734ccc3ffcaaf9846ea2f92b66ed0493 Mon Sep 17 00:00:00 2001 From: Ankit Aggarwal Date: Sun, 18 Oct 2015 02:18:26 +0530 Subject: [PATCH] Fix for create-my-github-issue button not working --- client/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/main.js b/client/main.js index f4e74c5967..6f147abcf7 100644 --- a/client/main.js +++ b/client/main.js @@ -235,7 +235,7 @@ $(document).ready(function() { 'links to screenshots if possible.\n\n' ].join(''); - if (editor.getValue().trim()) { + if (typeof editor !== 'undefined' && editor.getValue().trim()) { var type; switch (challengeType) { case challengeTypes.HTML_CSS_JQ: