class WebConsole::View

def only_on_regular_page(*args)

Execute a block only on regular, non-error, pages.
def only_on_regular_page(*args)
  yield if Thread.current[:__web_console_binding].present?
end