This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fn append_stylesheet() { | |
let document = window() | |
.expect("Couldn't get window") | |
.document() | |
.expect("Couldn't get document"); | |
let styles = document | |
.create_element("style") | |
.expect("Couldn't create style node"); | |
styles | |
.append_with_node_1( &document.create_text_node(&include_str!("../src/style.css"))) |