index.js
function(file){
        const list = require(utils.getAppLocalPath() + file);
        if(!isObject(list)) return false;

        Object.keys(list).forEach(key => {
            let window = list[key];
            this.createNew(key, window.title, window.url, window.setupTemplate, window.setup);
        });
    }
function(file){
        const list = require(utils.getAppLocalPath() + file);
        if(!isObject(list)) return false;

        Object.keys(list).forEach(key => {
            let window = list[key];
            this.createNew(key, window.title, window.url, window.setupTemplate, window.setup);
        });
    }
function ( file ) { const list = require ( utils . getAppLocalPath ( ) + file ) ; if ( ! isObject ( list ) ) return false ; Object . keys ( list ) . forEach ( key => { let window = list [ key ] ; this . createNew ( key , window . title , window . url , window . setupTemplate , window . setup ) ; } ) ; }
Using this method you can create more than one window with the setup information retrieved from a JSON file.
Using this method you can create more than one window with the setup information retrieved from a JSON file .