comparison libervia/pages/_browser/cache.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
comparison
equal deleted inserted replaced
1509:106bae41f5c8 1510:5ea06e8b06ed
1 from browser import window 1 from browser import window
2 from browser.local_storage import storage 2 from browser.local_storage import storage
3 from javascript import JSON 3 from javascript import JSON
4 from dialog import notification 4 from dialog import notification
5 from bridge import bridge 5 from bridge import Bridge
6 6
7 session_uuid = window.session_uuid 7 session_uuid = window.session_uuid
8 bridge = bridge() 8 bridge = Bridge()
9 9
10 # XXX: we don't use browser.object_storage because it is affected by 10 # XXX: we don't use browser.object_storage because it is affected by
11 # https://github.com/brython-dev/brython/issues/1467 and mixing local_storage.storage 11 # https://github.com/brython-dev/brython/issues/1467 and mixing local_storage.storage
12 # and object_storage was resulting in weird behaviour (keys found in one not in the 12 # and object_storage was resulting in weird behaviour (keys found in one not in the
13 # other) 13 # other)