disable shared array warning when api overrides messages

This commit is contained in:
Stewart Allen 2023-03-09 16:42:49 -05:00
commit 83857382e4

View file

@ -1517,9 +1517,9 @@ gapp.register("kiri.init", [], (root, exports) => {
// MAIN INITIALIZATION FUNCTION
function init_one() {
let { event, conf, view, show } = api;
let { event, conf, view, show, feature } = api;
if (!window.SharedArrayBuffer) {
if (feature.work_alerts && !window.SharedArrayBuffer) {
api.alerts.show("The security context of this", 10);
api.alerts.show("window blocks important functionality", 10);
}