From f44c8179cd0332287273eb3b888aadf71a1d1289 Mon Sep 17 00:00:00 2001 From: Simon Legner Date: Sat, 6 Jan 2024 12:03:25 +0100 Subject: [PATCH] SyntaxError: Illegal return statement --- assets/javascripts/debug.js | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/assets/javascripts/debug.js b/assets/javascripts/debug.js index 91765b57..e1ea25f0 100644 --- a/assets/javascripts/debug.js +++ b/assets/javascripts/debug.js @@ -9,14 +9,6 @@ * DS209: Avoid top-level return * Full docs: https://github.com/decaffeinate/decaffeinate/blob/main/docs/suggestions.md */ -if ( - !(typeof console !== "undefined" && console !== null - ? console.time - : undefined) || - !console.groupCollapsed -) { - return; -} // // App @@ -118,7 +110,7 @@ this.viewTree = function (view, level, visited) { `%c ${Array(level + 1).join(" ")}${ view.constructor.name }: ${!!view.activated}`, - "color:" + ((view.activated && "green") || "red"), + "color:" + ((view.activated && "green") || "red") ); for (var key of Object.keys(view || {})) {