fix loading urls without protocol from url bar

This commit is contained in:
Izalia Mae 2023-02-02 02:31:02 -05:00
parent a092150ffa
commit 4bccce81dd

View file

@ -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()