Skip to content

Commit

Permalink
Update router.js so it does not use isProduction
Browse files Browse the repository at this point in the history
  • Loading branch information
saharj committed May 3, 2016
1 parent ddef104 commit 9d1bba6
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions scripts/router.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,6 @@ SwaggerEditor.config(function Router($compileProvider, $stateProvider,

$compileProvider.aHrefSanitizationWhitelist('.');

// Disable debug info in production. To detect the "production" mode we are
// examining location.host to see if it matches localhost
var isProduction = !/localhost/.test(window.location.host);

$compileProvider.debugInfoEnabled(!isProduction);
$logProvider.debugEnabled(!isProduction);
$compileProvider.debugInfoEnabled(true);
$logProvider.debugEnabled(true);
});

0 comments on commit 9d1bba6

Please sign in to comment.