mahdiyari / hive-tx-js

Lightweight and complete JavaScript library for using Hive blockchain in Javascript environments such as Web or NodeJS.
MIT License
25 stars 12 forks source link

HiveTx not available in browser #35

Closed Penderis closed 1 year ago

Penderis commented 1 year ago

I might be missing something obvious so I do apologise but I need to use Hive-tx in the browser context. This I assumed is simply using <script src="https://cdn.jsdelivr.net/npm/hive-tx/dist/hive-tx.min.js"></script>

In my HTML doc and then either referencing it via window.hiveTx or hiveTx

However I cannot access the script at all, since Keychain does actually embed their script the console will pick up that Keychain is available but no reference to hiveTx is in the window context.

Hivejs picks up in the window via cdn link and when logging hiveTx I can see this in the console image

mahdiyari commented 1 year ago

This problem seems to have been introduced with v5. You can add @4 to the url and use the v4 in the meantime while I push a fix for this problem.

https://cdn.jsdelivr.net/npm/hive-tx@4/dist/hive-tx.min.js

mahdiyari commented 1 year ago

Fixed. It might take some time for the cache to refresh. Thanks for reporting.