| … | … | @@ -30,9 +30,13 @@ window.HyperBookingIdentity = (function () { |
| 30 | 30 | |
| 31 | 31 | nobleLoading = (async function () { |
| 32 | 32 | try { |
| 33 | | var module = await import('/web/vendor/noble-ed25519.js') |
| 33 | // Resolve vendor path from this script's src attribute |
| 34 | var scriptEl = document.querySelector('script[src*="identity.js"]') |
| 35 | var scriptSrc = scriptEl ? scriptEl.src : location.href |
| 36 | var vendorBase = scriptSrc.replace(/\/js\/identity\.js.*$/, '/vendor/') |
| 37 | var module = await import(vendorBase + 'noble-ed25519.js') |
| 34 | 38 | ed = module |
| 35 | | var hashModule = await import('/web/vendor/noble-sha512.js') |
| 39 | var hashModule = await import(vendorBase + 'noble-sha512.js') |
| 36 | 40 | sha512 = hashModule.sha512 |
| 37 | 41 | ed.etc.sha512Sync = function () { |
| 38 | 42 | return sha512.apply(null, arguments) |