From b7805f12e3334ece0e93a798831b2f4c08028971 Mon Sep 17 00:00:00 2001 From: Fen Dweller Date: Fri, 2 Mar 2018 16:18:17 -0500 Subject: [PATCH] Trying to put the error in the popup --- game.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/game.js b/game.js index bed2b60..f25558e 100644 --- a/game.js +++ b/game.js @@ -14,7 +14,7 @@ window.onerror = function(msg, source, lineno, colno, error) { if (!errored) { errored = true; - alert("An error occurred! Please press F12 to open the dev tools, then click the 'Console' tab and send any errors shown there to chemicalcrux\n\nScreenshotting the text and line number of the error would be great.\n\nAlso include the browser information that gets logged below it."); + alert("An error occurred! Please press F12 to open the dev tools, then click the 'Console' tab and send any errors shown there to chemicalcrux\n\nScreenshotting the text and line number of the error would be great.\n\nAlso include the browser information that gets logged below it.\n\nThe error might also show up here: " + msg + " at " + lineno + "," + colno); console.log(navigator.userAgent); }