mirror of
https://github.com/Afacanc38/browser.git
synced 2024-11-21 21:50:41 +03:00
a
This commit is contained in:
parent
5fc27eeedf
commit
04ea67c34e
1 changed files with 0 additions and 4 deletions
4
main.py
4
main.py
|
@ -64,12 +64,8 @@ class MyWindow(Handy.Window):
|
||||||
self.web.go_back()
|
self.web.go_back()
|
||||||
def on_inp_url_activate(self, widget):
|
def on_inp_url_activate(self, widget):
|
||||||
url_text = self.inp_url.get_text()
|
url_text = self.inp_url.get_text()
|
||||||
domain = ".int .edu .gov .mil .lnc .is .dev .travel .info .biz .email .build .agency .zone .bid .condos .dating .events .maison .partners .properties .productions .social .reviews .tech"
|
|
||||||
domain.split()
|
|
||||||
if "https://" in url_text:
|
if "https://" in url_text:
|
||||||
self.web.load_uri(url_text)
|
self.web.load_uri(url_text)
|
||||||
elif domain in url_text:
|
|
||||||
self.web.load_uri(f"https://{url_text}")
|
|
||||||
else:
|
else:
|
||||||
self.web.load_uri(f"https://duckduckgo.com/?q={url_text}")
|
self.web.load_uri(f"https://duckduckgo.com/?q={url_text}")
|
||||||
self.inp_url.set_text("")
|
self.inp_url.set_text("")
|
||||||
|
|
Loading…
Reference in a new issue