var config = { debug:window.location.search.indexOf('debug') > -1, baseUrl: window.location.protocol + '//' + window.location.hostname, uploadUrl: window.location.protocol + '//' + window.location.hostname+'/IoTCenter/File/Upload', isMobile: /(iPhone|iPad|iPod|iOS|Android)/i.test(navigator.userAgent) };