fix android support

This commit is contained in:
Jade (Rose) Rowland 2024-03-07 23:04:46 -05:00
parent 8dba865ca7
commit 30a5176090

View File

@ -46,7 +46,9 @@ export function repl({
},
};
const scheduler = sync ? new NeoCyclist(schedulerOptions) : new Cyclist(schedulerOptions);
// NeoCyclist uses a shared worker to communicate between instances, which is not supported on mobile chrome
const scheduler =
sync && typeof SharedWorker != 'undefined' ? new NeoCyclist(schedulerOptions) : new Cyclist(schedulerOptions);
let pPatterns = {};
let allTransform;