diff --git a/src/kiri/init.js b/src/kiri/init.js index 1461b3c8..4ca283d3 100644 --- a/src/kiri/init.js +++ b/src/kiri/init.js @@ -1517,12 +1517,7 @@ gapp.register("kiri.init", [], (root, exports) => { // MAIN INITIALIZATION FUNCTION function init_one() { - let { event, conf, view, show, feature } = api; - - if (feature.work_alerts && !window.SharedArrayBuffer) { - api.alerts.show("The security context of this", 10); - api.alerts.show("window blocks important functionality", 10); - } + let { event, conf, view, show } = api; event.emit('init.one'); @@ -2771,6 +2766,12 @@ gapp.register("kiri.init", [], (root, exports) => { $('gdpr').style.display = 'flex'; } + // 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); + } + // add keyboard focus handler (must use for iframes) WIN.addEventListener('load', function () { WIN.focus();