parent
57981b533d
commit
10419ff441
72 changed files with 377 additions and 312 deletions
|
|
@ -98,7 +98,7 @@ pub fn set_canvas_style_property(raw: &HtmlCanvasElement, property: &str, value:
|
|||
let style = raw.style();
|
||||
style
|
||||
.set_property(property, value)
|
||||
.expect(&format!("Failed to set {}", property));
|
||||
.unwrap_or_else(|err| panic!("error: {:?}\nFailed to set {}", err, property))
|
||||
}
|
||||
|
||||
pub fn is_fullscreen(canvas: &HtmlCanvasElement) -> bool {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue