mirror of
https://github.com/taobataoma/meanTorrent.git
synced 2026-01-14 19:32:19 +01:00
27 lines
549 B
JavaScript
27 lines
549 B
JavaScript
(function () {
|
|
'use strict';
|
|
|
|
// Users service used for communicating with the users REST endpoint
|
|
angular
|
|
.module('core')
|
|
.factory('DebugConsoleService', DebugConsoleService);
|
|
|
|
DebugConsoleService.$inject = ['MeanTorrentConfig'];
|
|
|
|
function DebugConsoleService(MeanTorrentConfig) {
|
|
var appConfig = MeanTorrentConfig.meanTorrentConfig.app;
|
|
|
|
var service = {
|
|
info: debugInfo
|
|
};
|
|
|
|
return service;
|
|
|
|
function debugInfo(obj) {
|
|
if (appConfig.showDebugLog) {
|
|
console.log(obj);
|
|
}
|
|
}
|
|
}
|
|
}());
|