Skip to content

Commit 9638444

Browse files
authored
Do not show unsupported browser modal for googlebot
This modal may be preventing the crawler from correctly indexing pages, because it takes over the whole screen.
1 parent 21a6fe3 commit 9638444

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/lib/supported-browser.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@ const supportedBrowser = () => {
2626
* always returns false
2727
*/
2828

29-
const recommendedBrowser = () => !bowser.isUnsupportedBrowser(minVersions, true);
29+
const recommendedBrowser = () =>
30+
!bowser.isUnsupportedBrowser(minVersions, true) ||
31+
window.navigator.userAgent.toLowerCase().indexOf('googlebot') !== -1;
3032

3133
export {
3234
supportedBrowser as default,

0 commit comments

Comments
 (0)