Created
February 11, 2016 09:08
-
-
Save koenoe/2051f76a8f29d984c2d1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function() { | |
'use strict'; | |
angular.module('app.core') | |
.config(configure); | |
configure.$inject = ['$rollbarProvider','config']; | |
/* @ngInject */ | |
function configure($rollbarProvider, config) { | |
// Configure Rollbar | |
if(config.rollbarToken){ | |
$rollbarProvider.init({ | |
accessToken: config.rollbarToken, | |
captureUncaught: true, | |
payload: { | |
environment: config.environment | |
} | |
}); | |
} | |
} | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment