docs: function getConfig(query) {
  	let config = query;
  
  	if (typeof config === 'string') {
  		try {
  			config = JSON.parse(config.replace(/^\?/, ''));
  		} catch(ex) {}
  	}
  
  	if (typeof config !== 'object') {
  		config = {};
  	}
  
  	return config;
  }