src/js/tubular/services/tubularConfig.js
function addConfig(configObj, platformObj) {
                for (const n in configObj) {
                    if (n != PLATFORM && configObj.hasOwnProperty(n)) {
                        if (angular.isObject(configObj[n])) {
                            if (angular.isUndefined(platformObj[n])) {
                                platformObj[n] = {};
                            }
                            addConfig(configObj[n], platformObj[n]);

                        } else if (angular.isUndefined(platformObj[n])) {
                            platformObj[n] = null;
                        }
                    }
                }
            }
function addConfig(configObj, platformObj) {
                for (const n in configObj) {
                    if (n != PLATFORM && configObj.hasOwnProperty(n)) {
                        if (angular.isObject(configObj[n])) {
                            if (angular.isUndefined(platformObj[n])) {
                                platformObj[n] = {};
                            }
                            addConfig(configObj[n], platformObj[n]);

                        } else if (angular.isUndefined(platformObj[n])) {
                            platformObj[n] = null;
                        }
                    }
                }
            }
function addConfig ( configObj , platformObj ) { for ( const n in configObj ) { if ( n != PLATFORM && configObj . hasOwnProperty ( n ) ) { if ( angular . isObject ( configObj [ n ] ) ) { if ( angular . isUndefined ( platformObj [ n ] ) ) { platformObj [ n ] = { } ; } addConfig ( configObj [ n ] , platformObj [ n ] ) ; } else if ( angular . isUndefined ( platformObj [ n ] ) ) { platformObj [ n ] = null ; } } } }
add new platform configs
add new platform configs