From 78432bbaf47240b50ba4d9d58ab317338838f2c5 Mon Sep 17 00:00:00 2001 From: Simo Kinnunen Date: Tue, 22 Apr 2014 17:27:37 +0900 Subject: [PATCH] Update browser database. --- lib/roles/device/plugins/browser.js | 30 +++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) 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