Preserve H5 flows while adding Taobao identity, native capture, reports and isolated local development. Fix canceled province selection and expired-session logout. Record passing local regressions, two pre-existing H5 assertion failures and pending platform validation.
7 lines
314 B
JavaScript
7 lines
314 B
JavaScript
var config = require('../config');
|
|
function cameraDebugEnabled() {
|
|
return config.environment === 'development' && config.cameraDebug === true && config.transport === 'direct' &&
|
|
/^http:\/\/(localhost|127\.0\.0\.1)(:\d+)?$/.test(config.baseUrl);
|
|
}
|
|
module.exports = { cameraDebugEnabled: cameraDebugEnabled };
|