Skip to content

Commit

Permalink
fixup! also load external stylesheets with file://
Browse files Browse the repository at this point in the history
  • Loading branch information
Sharktheone committed Aug 28, 2024
1 parent 27c8ef7 commit 0258037
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/gosub_html5/src/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4199,7 +4199,7 @@ impl<'chars> Html5Parser<'chars> {

#[cfg(not(target_arch = "wasm32"))]
fn load_external_stylesheet(&self, origin: CssOrigin, url: Url) -> Option<CssStylesheet> {
let css = if url.scheme() == "http" && url.scheme() == "https" {
let css = if url.scheme() == "http" || url.scheme() == "https" {
// Fetch the html from the url
let response = ureq::get(url.as_ref()).call();
if response.is_err() {
Expand Down

0 comments on commit 0258037

Please sign in to comment.