Browse Source

Only match the mime type part of meta for now

Fixes rendering gemini://alexschroeder.ch for example
tags/0.8.14
Julien Blanchard 11 months ago
parent
commit
2e12557d6b
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      src/main.rs

+ 1
- 1
src/main.rs View File

@@ -215,7 +215,7 @@ pub fn visit_url<T: AbsoluteUrl + Protocol>(gui: &Arc<Gui>, url: T) {
215 215
                                             String::from_utf8_lossy(&new_content).to_string();
216 216
 
217 217
                                         clear_buffer(&content_view);
218
-                                        if meta == "text/gemini" {
218
+                                        if meta.starts_with("text/gemini") {
219 219
                                             let parsed_content = gemini::parser::parse(content_str);
220 220
                                             draw::gemini_content(&gui, parsed_content);
221 221
                                         } else {

Loading…
Cancel
Save