diff --git a/History.md b/History.md index eff4956..1cb53fe 100644 --- a/History.md +++ b/History.md @@ -14,6 +14,7 @@ * [core] Move storage to database (#30, #32) ⚠ * [core] Allow to pass ID to channel modification * [editor] Add all template functions to highlighter + * [overlays] Add `hide` option to debug overlay * [templating] Add sprig functions, replace some built-ins ⚠ * Bugfixes diff --git a/internal/apimodules/overlays/default/debug.html b/internal/apimodules/overlays/default/debug.html index 3539f68..e1524c7 100644 --- a/internal/apimodules/overlays/default/debug.html +++ b/internal/apimodules/overlays/default/debug.html @@ -74,6 +74,10 @@ window.botClient = new EventClient({ handlers: { _: (evt, data, time, live) => { + if (window.botClient.paramOptionFallback('hide', '').split(',').includes(evt)) { + return + } + this.events = [ { event: evt, fields: data, time }, ...this.events,