excalidraw-jetbrains-plugin
excalidraw-jetbrains-plugin copied to clipboard
Explore serialization replacement for query handling
From Vladimir Kharitonov
Looks like you may implement GET/POST handlers(to read/write file). I see in JCEF that it's possible to intercept POST (
CefPostDataElement
) requests as well as GET.
Other consideration about local storage
Actually starting upcoming 2024.1 version of IntelliJ platform, JCEF offers an option to use Chrome DevTools Protocol. There is no examples of using it so far. There is no file system API. Don't think it's possible or actually needed. Don't see a problem in accessing localStorage in CefLoadHandler . So, yes.
I wonder if we can use CefDevToolsClient
to restore / save a local storage. (need to have a look at this new API :slightly_smiling_face:)
- Looks like devtool protocol offers such functionality https://chromedevtools.github.io/devtools-protocol/tot/DOMStorage/#method-setDOMStorageItem Not sure that it's better than using JS though
I think the local storage is unique not per Frame by itself, but per origin(domain+port).