index.js
function cordovaCreateLegacyAdapter (dir, id, name, cfg, extEvents) {
    // Unwrap and shallow-clone that nasty nested config object
    const opts = Object.assign({}, ((cfg || {}).lib || {}).www);

    if (id) opts.id = id;
    if (name) opts.name = name;
    if (extEvents) opts.extEvents = extEvents;

    return cordovaCreate(dir, opts);
}
function cordovaCreateLegacyAdapter (dir, id, name, cfg, extEvents) {
    // Unwrap and shallow-clone that nasty nested config object
    const opts = Object.assign({}, ((cfg || {}).lib || {}).www);

    if (id) opts.id = id;
    if (name) opts.name = name;
    if (extEvents) opts.extEvents = extEvents;

    return cordovaCreate(dir, opts);
}
function cordovaCreateLegacyAdapter ( dir , id , name , cfg , extEvents ) { // Unwrap and shallow-clone that nasty nested config object const opts = Object . assign ( { } , ( ( cfg || { } ) . lib || { } ) . www ) ; if ( id ) opts . id = id ; if ( name ) opts . name = name ; if ( extEvents ) opts . extEvents = extEvents ; return cordovaCreate ( dir , opts ) ; }
Legacy interface. See README for documentation
Legacy interface . See README for documentation