all files / components/webmapp/ webmapp.controller.js

12.5% Statements 1/8
0% Branches 0/4
0% Functions 0/1
12.5% Lines 1/8
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19                                    
angular.module('webmapp')
 
.controller('WebmappController', function WebmappController(
    $translate,
    CONFIG,
    Utils
) {
    var vm = {};
 
    vm.colors = CONFIG.STYLE;
    vm.openInAppBrowser = Utils.openInAppBrowser;
    vm.currentLang = $translate.preferredLanguage() ? $translate.preferredLanguage() : "it";
 
    if (vm.currentLang === 'it') {
        vm.currentLang = '';
    }
 
    return vm;
});