diff --git a/package-lock.json b/package-lock.json index afdb6ba..304d3ca 100644 --- a/package-lock.json +++ b/package-lock.json @@ -5987,7 +5987,7 @@ }, "node_modules/lnurlcash-kit": { "version": "0.1.0", - "resolved": "git+ssh://git@github.com/tompro/lnurlcash-kit.git#78c9ca2ed597da354629306f280eeb722b9223db", + "resolved": "git+ssh://git@github.com/tompro/lnurlcash-kit.git#662277bbb348800c3e559ec70d85d75795b75c13", "license": "MIT", "dependencies": { "@noble/curves": "^2.3.0", diff --git a/quasar.config.ts b/quasar.config.ts index 3a8d7c0..59f114b 100644 --- a/quasar.config.ts +++ b/quasar.config.ts @@ -11,7 +11,7 @@ export default defineConfig((ctx) => { // app boot file (/src/boot) // --> boot files are part of "main.js" // https://v2.quasar.dev/quasar-cli-vite/boot-files - boot: ['i18n', 'kit-fetch', 'wallet', 'deeplinks'], + boot: ['i18n', 'wallet', 'deeplinks'], // https://v2.quasar.dev/quasar-cli-vite/quasar-config-file#css css: ['app.scss'], diff --git a/src/boot/kit-fetch.ts b/src/boot/kit-fetch.ts deleted file mode 100644 index 04c40f7..0000000 --- a/src/boot/kit-fetch.ts +++ /dev/null @@ -1,14 +0,0 @@ -import { defineBoot } from '#q-app'; - -// lnurlcash-kit's transport resolves its fetch as `options.fetch ?? -// globalThis.fetch` and then invokes it as a method on the options object. -// In a browser, calling window.fetch with any receiver other than window -// throws a synchronous "Illegal invocation" TypeError - before any request -// is even attempted (Node's fetch has no such receiver check, so the unit -// tests never see it; every kit network call failed in real browsers). -// Binding the global once here means the kit's captured default is already -// bound, whichever receiver it is invoked with. Remove once lnurlcash-kit -// fixes this upstream in its transport (resolveOptions). -export default defineBoot(() => { - window.fetch = window.fetch.bind(window); -});