From 025803784078e4a6cc12ce477dbd651c650d1fef Mon Sep 17 00:00:00 2001 From: Shark Date: Wed, 28 Aug 2024 15:33:04 +0200 Subject: [PATCH] fixup! also load external stylesheets with file:// --- crates/gosub_html5/src/parser.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/gosub_html5/src/parser.rs b/crates/gosub_html5/src/parser.rs index 44fa2b53c..d88179496 100644 --- a/crates/gosub_html5/src/parser.rs +++ b/crates/gosub_html5/src/parser.rs @@ -4199,7 +4199,7 @@ impl<'chars> Html5Parser<'chars> { #[cfg(not(target_arch = "wasm32"))] fn load_external_stylesheet(&self, origin: CssOrigin, url: Url) -> Option { - 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() {