Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/issue-1821' into upgrade-ui
Browse files Browse the repository at this point in the history
  • Loading branch information
dominhquang committed Oct 8, 2024
2 parents ff910f1 + 92648fd commit ea5e63b
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/providers/WebRunnerProvider/WebRunner.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -246,10 +246,12 @@ class WebRunnerHandler {
this.runnerState.userAgent = info.userAgent;
if (Platform.OS === 'android') {
const needUpdateChrome = parseInt(info.userAgent.match(/Chrom(e|ium)\/([0-9]+)\./)?.[2] || '0', 10);
setTimeout(
() => DeviceEventEmitter.emit(NEED_UPDATE_CHROME, needUpdateChrome <= WEBVIEW_ANDROID_SYSTEM_MIN_VERSION),
500,
);
if (needUpdateChrome !== 0) {
setTimeout(
() => DeviceEventEmitter.emit(NEED_UPDATE_CHROME, needUpdateChrome <= WEBVIEW_ANDROID_SYSTEM_MIN_VERSION),
500,
);
}
}

return true;
Expand Down

0 comments on commit ea5e63b

Please sign in to comment.