Welcome to mirror list, hosted at ThFree Co, Russian Federation.

piwikApp.config.js « angularjs « CoreHome « plugins - github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 8d73dda3838afe490eeae035eba2b12a98f219e4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
(function () {
    angular.module('piwikApp.config', []);

    if ('undefined' === (typeof piwik) || !piwik) {
        return;
    }

    var piwikAppConfig = angular.module('piwikApp.config');
    // we probably want this later as a separate config file, till then it serves as a "bridge"
    for (var index in piwik.config) {
        piwikAppConfig.constant(index.toUpperCase(), piwik.config[index]);
    }
})();