export const settings = { httpsOnly : false , } ; export function set ( newSettings ) { Object . keys ( settings ) . forEach ( ( key ) => { if ( newSettings . hasOwnProperty ( key ) ) { settings [ key ] = ! ! newSettings [ key ] ; } } ) ; } export default settings ;