From 2f00d0a2539fd04194ef0a6944166fe15e1299f6 Mon Sep 17 00:00:00 2001 From: phil Date: Wed, 18 Jun 2014 12:50:59 +0200 Subject: [PATCH] use debug and insider info to determine if logs should be exposed --- .../{livepage.js.coffee.erb => livepage.js.coffee} | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) rename app/assets/javascripts/{livepage.js.coffee.erb => livepage.js.coffee} (80%) diff --git a/app/assets/javascripts/livepage.js.coffee.erb b/app/assets/javascripts/livepage.js.coffee similarity index 80% rename from app/assets/javascripts/livepage.js.coffee.erb rename to app/assets/javascripts/livepage.js.coffee index 6890eaea3..b8f3e80fc 100644 --- a/app/assets/javascripts/livepage.js.coffee.erb +++ b/app/assets/javascripts/livepage.js.coffee @@ -7,8 +7,11 @@ window.Livepage = angular.module 'Livepage', [] configFunc = ($logProvider) -> - $logProvider.debugEnabled <%= !Settings.disable_js_debugging %> + $logProvider.debugEnabled window.debug or window.insider configFunc.$inject = ['$logProvider'] window.Livepage.config configFunc + + +