update compatibility check to support desktop app
This commit is contained in:
parent
d990a95a06
commit
95de5a76fe
|
@ -4,9 +4,12 @@ import {
|
||||||
webglSupported,
|
webglSupported,
|
||||||
} from 'utils/common';
|
} from 'utils/common';
|
||||||
|
|
||||||
|
import isElectron from 'is-electron';
|
||||||
|
|
||||||
// TODO: check electron env to be campatible with this
|
// TODO: check electron env to be campatible with this
|
||||||
export function canEnableMlSearch(): boolean {
|
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');
|
console.log('Not running in Chrome Desktop');
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue