update security context alert

This commit is contained in:
Stewart Allen 2024-06-13 22:17:20 -04:00
commit 7324870856
2 changed files with 4 additions and 2 deletions

View file

@ -382,7 +382,8 @@ 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");
api.alerts.show("window prevents animations.");
api.alerts.show("Try a Chromium-based browser");
return;
}
api.event.emit("function.animate", {mode: api.conf.get().mode});

View file

@ -2627,7 +2627,8 @@ gapp.register("kiri.init", [], (root, exports) => {
// warn of degraded functionality when SharedArrayBuffers are missing
if (api.feature.work_alerts && !window.SharedArrayBuffer) {
api.alerts.show("The security context of this", 10);
api.alerts.show("window blocks important functionality", 10);
api.alerts.show("Window blocks important functionality.", 10);
api.alerts.show("Try a Chromium-base Browser instead", 10);
}
// add keyboard focus handler (must use for iframes)