Verified Commit 13276910 authored by Štěpán Henek's avatar Štěpán Henek 🌩

disable WS filtering when controller-id is not set

parent 88576b02
......@@ -135,7 +135,7 @@ Foris.applySVGFallback = function() {
Foris.WsHandlers = {};
Foris.addWsHanlder = (module, handler, controller_id) => {
controller_id = controller_id || $('meta[name=controller-id]').attr("content");
controller_id = controller_id || $('meta[name=controller-id]').attr("content") || '+';
let moduleHandler = Foris.WsHandlers[module] || {};
let handlers = moduleHandler[controller_id] || [];
handlers.push(handler);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment