diff --git a/lib/roles/device/plugins/browser.js b/lib/roles/device/plugins/browser.js index 701ca48e..90e60d84 100644 --- a/lib/roles/device/plugins/browser.js +++ b/lib/roles/device/plugins/browser.js @@ -34,6 +34,36 @@ module.exports = syrup.serial() case 'com.android.browser': app.type = 'android' break + case 'org.mozilla.firefox': + app.type = 'firefox' + break + case 'org.mozilla.firefox_beta': + app.type = 'firefox-beta' + break + case 'com.opera.browser': + app.type = 'opera' + break + case 'com.opera.mini.android': + app.type = 'opera-mini' + break + case 'com.opera.browser.beta': + app.type = 'opera-beta' + break + case 'com.UCMobile.intl': + app.type = 'uc' + break + case 'com.explore.web.browser': + app.type = 'lightning' + break + case 'com.baidu.browser.inter': + app.type = 'baidu' + break + case 'com.tencent.ibibo.mtt': + app.type = 'one' + break + default: + app.type = app.name.toLowerCase() + .replace(/\s+/g, '-') } app.id = app.component