From 4bccce81dda9288ce55c18fb5c16904485d0026c Mon Sep 17 00:00:00 2001 From: Izalia Mae Date: Thu, 2 Feb 2023 02:31:02 -0500 Subject: [PATCH] fix loading urls without protocol from url bar --- barkshark_web/component/web_tab.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/barkshark_web/component/web_tab.py b/barkshark_web/component/web_tab.py index 2af64df..490b887 100644 --- a/barkshark_web/component/web_tab.py +++ b/barkshark_web/component/web_tab.py @@ -534,7 +534,10 @@ class WebTab(BuilderBase, Gtk.Box): logging.verbose('Url without protocol') except (NXDOMAIN, NoAnswer, TypeError): - keword = s.get_config('default_search') + return run_in_gui_thread( + self.webview.load_uri, + url.replace_properties(proto='https') + ) if not (search := s.get_search(keyword, default=False)): search = s.get_search()