feat/shell-postMessage-api

View source
feat/shell-postMessage-api
  • Contributors
    1. Loading...
Author Commit Message Date Builds
Andrey Popp
HTSQL shell postMessage API only allows to communicate with the same origin
Andrey Popp
Allow to communicate via postMessage with the HTSQL shell This commits adds a postMessage API to HTSQL shell. The main motivation for that is to allow a tighter integration of the HTSQL shell into application by embedding shell as an `<iframe />`. The API allows to request a current query from the shell via `postMessage`, example code: function getQueryFromIframe(iframe) { // generate req id const id = Math.floor(Math.random() * 10000)…