From eaa758870ea8b0966f7d7b6ea4e9d640cc5cd591 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adomas=20Ven=C4=8Dkauskas?= Date: Thu, 8 Dec 2016 13:27:58 +0200 Subject: [PATCH] Octal literals invalid in strict mode, replacing with hexadecimal Relevant in connectors --- chrome/content/zotero/xpcom/debug.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/chrome/content/zotero/xpcom/debug.js b/chrome/content/zotero/xpcom/debug.js index fb3503c5d..2632beba2 100644 --- a/chrome/content/zotero/xpcom/debug.js +++ b/chrome/content/zotero/xpcom/debug.js @@ -80,8 +80,8 @@ Zotero.Debug = new function () { var slowPrefix = ""; var slowSuffix = ""; if (_slowTime && delta > _slowTime) { - slowPrefix = "\033[31;40m"; - slowSuffix = "\033[0m"; + slowPrefix = "\x1b[31;40m"; + slowSuffix = "\x1b[0m"; } // TODO: Replace with String.prototype.padStart once available (Fx48)