Skip to content

Commit

Permalink
refresh http* only
Browse files Browse the repository at this point in the history
  • Loading branch information
nwg-piotr committed Feb 14, 2024
1 parent e1254fd commit 8930ab4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nwg_readme_browser/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ def handle_keyboard(win, event):
search_entry.set_text("")
else:
win.destroy()
elif event.keyval == Gdk.KEY_F5 and not webview.get_uri().startswith("file:"):
elif event.keyval == Gdk.KEY_F5 and webview.get_uri() and webview.get_uri().startswith("http"):
if event.state & Gdk.ModifierType.CONTROL_MASK:
webview.reload_bypass_cache()
else:
Expand Down

0 comments on commit 8930ab4

Please sign in to comment.