CDPotion.Domain.Console (cdpotion v0.1.4)

Summary

Types

Console message.

Functions

Does nothing.

Disables console domain, prevents further console messages from being reported to the client.

Enables console domain, sends the messages collected so far to the client by means of the messageAdded notification.

Types

Link to this type

console_message()

@type console_message() :: %{
  column: integer() | nil,
  level: :log | :warning | :error | :debug | :info,
  line: integer() | nil,
  source:
    :xml
    | :javascript
    | :network
    | :"console-api"
    | :storage
    | :appcache
    | :rendering
    | :security
    | :other
    | :deprecation
    | :worker,
  text: String.t(),
  url: String.t() | nil
}

Console message.

Functions

Link to this function

clear_messages()

@spec clear_messages() :: {String.t(), map()}

Does nothing.

@spec disable() :: {String.t(), map()}

Disables console domain, prevents further console messages from being reported to the client.

@spec enable() :: {String.t(), map()}

Enables console domain, sends the messages collected so far to the client by means of the messageAdded notification.