update compatibility check to support desktop app
This commit is contained in:
parent
d990a95a06
commit
95de5a76fe
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue