]> git.ardis.lu - solc-metadata/commitdiff
Add functions to global namespace as utils
authorArdis Lu <ardisglu@gmail.com>
Sun, 25 Jun 2023 02:44:37 +0000 (19:44 -0700)
committerArdis Lu <ardisglu@gmail.com>
Sun, 25 Jun 2023 02:44:37 +0000 (19:44 -0700)
index.html

index 0b70cf7b5d0ed1cce9281e9d8c42238341f94015..108b3cf5899a99314e0f40cbc191dee0ee5a15bb 100644 (file)
 
   <script type="module">
     import { fetchBytecode, extractCBOR, decodeCBOR, calculateCID, fetchJSONMetadata } from '/index.js';
+    globalThis.utils = await import('/index.js'); // Make all functions available in DevTools
 
     const button = document.querySelector('button');
     const spinner = document.querySelector('.inline-spinner');
This page took 0.040513 seconds and 4 git commands to generate.