add warning if animations are not allowed
This commit is contained in:
parent
7ddea6b89e
commit
73618ba46d
1 changed files with 5 additions and 0 deletions
|
|
@ -376,6 +376,11 @@ function preparePreview(callback, scale = 1, offset = 0) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function prepareAnimation() {
|
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();
|
const settings = api.conf.get();
|
||||||
api.event.emit("function.animate", {mode: settings.mode});
|
api.event.emit("function.animate", {mode: settings.mode});
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue