Skip to content

Commit

Permalink
renderer/gtk: Change behavior on invalid scheme.
Browse files Browse the repository at this point in the history
  • Loading branch information
aadcg committed Aug 5, 2024
1 parent b2cac65 commit 293016c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/renderer/gtk.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -1086,8 +1086,8 @@ See `finalize-buffer'."
(log:debug "Load URL in new buffer: ~a" (render-url (url request-data)))
(nyxt::open-urls (list (url request-data)))
(webkit:webkit-policy-decision-ignore response-policy-decision))
((not (valid-scheme-p (quri:uri-scheme (url request-data))))
(uiop:launch-program (list *open-program* (quri:render-uri (url request-data)))))
((null (valid-scheme-p (quri:uri-scheme (url request-data))))
(log:warn "Unsupported URI scheme: ~s." (quri:uri-scheme (url request-data))))
((not (known-type-p request-data))
(log:debug "Initiate download of ~s." (render-url (url request-data)))
(webkit:webkit-policy-decision-download response-policy-decision))
Expand Down

0 comments on commit 293016c

Please sign in to comment.