add warning if animations are not allowed

This commit is contained in:
Stewart Allen 2022-10-13 15:08:47 -04:00
commit 73618ba46d

View file

@ -376,6 +376,11 @@ function preparePreview(callback, scale = 1, offset = 0) {
}
function prepareAnimation() {
if (!window.SharedArrayBuffer) {
api.alerts.show("The security context of this");
api.alerts.show("window prevents animations");
return;
}
const settings = api.conf.get();
api.event.emit("function.animate", {mode: settings.mode});
}