Skip to content

Commit

Permalink
show scheme using emoji
Browse files Browse the repository at this point in the history
  • Loading branch information
mildsunrise authored and dlenski committed May 9, 2024
1 parent b125f9b commit c46af04
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gp_saml_gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,8 @@ def on_load_changed(self, webview, event):

if self.verbose:
print('[PAGE ] Finished loading page %s' % uri, file=stderr)
origin = urlunsplit(urlparse(uri)[:2] + ('',)*3)
urip = urlparse(uri)
origin = '%s %s' % ('🔒' if urip.scheme == 'https' else '🔴', urip.netloc)
self.window.set_title("SAML Login (%s)" % origin)

# if no response or no headers (for e.g. about:blank), skip checking this
Expand Down

0 comments on commit c46af04

Please sign in to comment.