orbs-network / ton-access

Unthrottled anonymous RPC access to TON blockchain via a robust decentralized network
MIT License
71 stars 4 forks source link

Fix exports in browser script #3

Closed talkol closed 1 year ago

talkol commented 2 years ago

Right now in the browser version, the getHttpEndpoint and all members are exported to window

Please export to window just a single namespace TonGateway and under it put all the exports, for example TonGateway.getHttpEndpoint()

<script src="https://cdn.jsdelivr.net/gh/orbs-network/ton-gateway@1.1.1/dist/index.min.js"></script>
<script>
    document.addEventListener("DOMContentLoaded", function () {
        TonGateway.getHttpEndpoint().then((endpoint) => {