UNPKG

htmx.org

Version:

high power tools for html

12 lines (11 loc) 289 B
htmx.defineExtension('debug', { onEvent: function (name, evt) { if (console.debug) { console.debug(name, evt); } else if (console) { console.log("DEBUG:", name, evt); } else { throw "NO CONSOLE SUPPORTED" } } });