Skip to content
This repository has been archived by the owner on Mar 12, 2024. It is now read-only.

Commit

Permalink
fix: allow file downloads
Browse files Browse the repository at this point in the history
  • Loading branch information
lleyton committed Jan 7, 2024
1 parent 305415f commit 098fb61
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/MainWindow.vala
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 098fb61

Please sign in to comment.