Place the following at the head, and probably smart after 'page_state' package.
<script src="https://unpkg.com/embedded_api/build/bundle.min.js"></script>- This package is published both on GitHub and on npmjs.
- To publish an updated version - simply run
npm publish
, it will commit & push updates both to github and npm.
- Implement a cross-origin solution? See here: https://stackoverflow.com/questions/25098021/securityerror-blocked-a-frame-with-origin-from-accessing-a-cross-origin-frame