update compatibility check to support desktop app

This commit is contained in:
Abhinav 2022-02-04 18:09:51 +05:30
parent d990a95a06
commit 95de5a76fe

View file

@ -4,9 +4,12 @@ import {
webglSupported,
} from 'utils/common';
import isElectron from 'is-electron';
// TODO: check electron env to be campatible with this
export function canEnableMlSearch(): boolean {
if (!runningInChrome(false)) {
// check if is chrome or ente desktop
if (!runningInChrome(false) && !isElectron()) {
console.log('Not running in Chrome Desktop');
return false;
}