1 import { isMobile, isSafari } from '@proton/shared/lib/helpers/browser';
3 export default function isSearchFeatureEnabled() {
4 // Safari has several issues.
5 // One: it is throttling a lot. First tens of items are done fast but
6 // after ~ 500 items it goes very slowly and after ~ 2500 items it
7 // basically stops without any progress.
8 // Second: in some cases even if indexing finishes, sometimes search
9 // doesnt work. Probably index is not created correctly. Its just few
10 // reported cases and we haven't found the issue yet.
11 // Because of that, its better to not allow search on Safari at all
12 // until we find some way around it.
13 return !isSafari() && !isMobile();