Skip to content

Commit c46af04

Browse files
mildsunrisedlenski
authored andcommitted
show scheme using emoji
1 parent b125f9b commit c46af04

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

gp_saml_gui.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,8 @@ def on_load_changed(self, webview, event):
140140

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

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

0 commit comments

Comments
 (0)