From 73618ba46d3ee92d31ae5708d9713060937bb3fd Mon Sep 17 00:00:00 2001 From: Stewart Allen Date: Thu, 13 Oct 2022 15:08:47 -0400 Subject: [PATCH] add warning if animations are not allowed --- src/kiri/function.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/kiri/function.js b/src/kiri/function.js index 4442481a..fc7b69c9 100644 --- a/src/kiri/function.js +++ b/src/kiri/function.js @@ -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}); }