...
 
Commits (2)
__pycache__/Penti.cpython-36.pyc
/__pycache__/
......@@ -19,8 +19,10 @@ class Browser(Gtk.Window):
# webview
self.webview = WebKit2.WebView()
self.webview.load_uri(f'http://{url}/') # default loading url
if url.startswith("http") or url.startswith("file"):
self.webview.load_uri(url)
else:
self.webview.load_uri(f'http://{url}/') # default loading url
self.win.add(self.webview)
# display
......