Skip to content

Fix Tailwind CSS MIME type and Nostr integration - #6

Merged
aljazceru merged 1 commit into
mainfrom
claude/fix-tailwind-nostr-errors-01Py3nCAFnEa2UhW9MmUotjJ
Nov 17, 2025
Merged

aljazceru merged 1 commit into
mainfrom
claude/fix-tailwind-nostr-errors-01Py3nCAFnEa2UhW9MmUotjJ

Conversation

@aljazceru

Copy link
Copy Markdown
Contributor
  • Replace invalid Tailwind CSS CDN URL with Tailwind Play CDN script
    • Old URL (jsdelivr.net npm package) served wrong MIME type (text/plain)
    • New CDN (cdn.tailwindcss.com) properly serves as JavaScript
  • Fix wasm-bindgen conflict in WindowNostr type definition
    • Remove duplicate js_name attribute causing "window.nostr is not a function" error
    • Type binding now correctly references window.nostr via getter
  • Update Dioxus.toml to remove obsolete stylesheet reference

Fixes browser console errors:

  • "The resource was blocked due to MIME type mismatch"
  • "window.nostr is not a function"

- Replace invalid Tailwind CSS CDN URL with Tailwind Play CDN script
  * Old URL (jsdelivr.net npm package) served wrong MIME type (text/plain)
  * New CDN (cdn.tailwindcss.com) properly serves as JavaScript
- Fix wasm-bindgen conflict in WindowNostr type definition
  * Remove duplicate js_name attribute causing "window.nostr is not a function" error
  * Type binding now correctly references window.nostr via getter
- Update Dioxus.toml to remove obsolete stylesheet reference

Fixes browser console errors:
- "The resource was blocked due to MIME type mismatch"
- "window.nostr is not a function"
@aljazceru
aljazceru merged commit 82beef6 into main Nov 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants