diff libervia/pages/_browser/invitation.py @ 1510:5ea06e8b06ed

browser: make bridge API closer to the one use with other frontends: `bridge.AsyncBridge` is not used instead of `aio_bridge.Bridge`
author Goffi <goffi@goffi.org>
date Mon, 22 May 2023 11:57:44 +0200
parents 106bae41f5c8
children
line wrap: on
line diff
--- a/libervia/pages/_browser/invitation.py	Sat Apr 08 13:44:11 2023 +0200
+++ b/libervia/pages/_browser/invitation.py	Mon May 22 11:57:44 2023 +0200
@@ -1,11 +1,11 @@
 from browser import document, window, timer
-from bridge import bridge
+from bridge import Bridge
 from template import Template
 import dialog
 from cache import cache
 import javascript
 
-bridge = bridge()
+bridge = Bridge()
 # we use JS RegExp because Python's re is really long to import in Brython
 # FIXME: this is a naive JID regex, a more accurate should be used instead
 jid_re = javascript.RegExp.new(r"^\w+@\w+\.\w+")