From 098fb61f133304c840eb37be9b097666561e4c45 Mon Sep 17 00:00:00 2001 From: Lleyton Gray Date: Sat, 6 Jan 2024 17:06:51 -0800 Subject: [PATCH] fix: allow file downloads --- src/MainWindow.vala | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/MainWindow.vala b/src/MainWindow.vala index 2fd0f08..e82350f 100644 --- a/src/MainWindow.vala +++ b/src/MainWindow.vala @@ -48,7 +48,8 @@ public class SkiffDesktop.MainWindow : He.ApplicationWindow { .get_navigation_action () .get_request () .get_uri (); - if (uri.has_prefix (BASE_URL)) { + // blob:BASE_URL is for in-app downloads + if (uri.has_prefix (BASE_URL) || uri.has_prefix ("blob:" + BASE_URL)) { policy_decision.use (); } else { policy_decision.ignore (); // We shouldn't navigate away from the app.