From 4e3c7e7021af4f27e659a809b97001ce07a9adfd Mon Sep 17 00:00:00 2001 From: Marcin Rataj Date: Sat, 16 Feb 2019 21:09:49 +0100 Subject: [PATCH] fix: restore proper startup on Android Firefox for Android announces itself as 'Fennec' :-) --- add-on/src/lib/runtime-checks.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/add-on/src/lib/runtime-checks.js b/add-on/src/lib/runtime-checks.js index 3d423af36..e39ef022a 100644 --- a/add-on/src/lib/runtime-checks.js +++ b/add-on/src/lib/runtime-checks.js @@ -19,7 +19,7 @@ async function createRuntimeChecks (browser) { // browser const browserInfo = await getBrowserInfo(browser) const runtimeBrowserName = browserInfo ? browserInfo.name : 'unknown' - const runtimeIsFirefox = !!runtimeBrowserName.match('Firefox') + const runtimeIsFirefox = !!(runtimeBrowserName.includes('Firefox') || runtimeBrowserName.includes('Fennec')) const runtimeHasNativeProtocol = !!(browser && browser.protocol && browser.protocol.registerStringProtocol) // platform const platformInfo = await getPlatformInfo(browser)