Skip to main content

report

Function report 

Source
pub fn report(text: &str)
Expand description

Sends the page text: the game’s problems with the page’s files, one a line, each with its file and line as cargo shuyi check prints them; the empty text when they load. The page’s parent frame gets it as a { kind: "shuyi-report", text } message when it has the page’s origin, and the console otherwise. On every target but the web it does nothing.