Skip to content

Commit

Permalink
use debug and insider info to determine if logs should be exposed
Browse files Browse the repository at this point in the history
  • Loading branch information
branch14 committed Jun 18, 2014
1 parent 2703181 commit 2f00d0a
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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




0 comments on commit 2f00d0a

Please sign in to comment.