From 261e901a919a6a086e46ab259ddf5174b4cb8925 Mon Sep 17 00:00:00 2001 From: John Firebaugh Date: Tue, 2 Apr 2013 13:54:26 -0700 Subject: [PATCH] Fix console reference for IE https://app.getsentry.com/id/id/group/4402396/ --- js/lib/locale.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/lib/locale.js b/js/lib/locale.js index b4bdeba8e..4635a06e5 100644 --- a/js/lib/locale.js +++ b/js/lib/locale.js @@ -20,7 +20,7 @@ function t(s, o, loc) { return rep; } else { var missing = 'Missing translation: ' + s; - if (console) console.error(missing); + if (typeof console !== "undefined") console.error(missing); if (loc !== 'en') return t(s, o, 'en'); if (o && 'default' in o) return o['default']; return missing;