Skip to content

Commit

Permalink
fix: restore proper startup on Android
Browse files Browse the repository at this point in the history
Firefox for Android announces itself as 'Fennec' :-)
  • Loading branch information
lidel committed Feb 16, 2019
1 parent 1b81a4f commit 4e3c7e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion add-on/src/lib/runtime-checks.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 4e3c7e7

Please sign in to comment.