From 12d4306b2c1cfb2315a0dfc131a3d346372e1340 Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 17 Nov 2025 18:56:41 +0000 Subject: [PATCH] fix: Resolve Tailwind CSS MIME type error and Nostr binding issue - 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" --- Dioxus.toml | 2 +- index.html | 2 +- src/nostr/signer.rs | 1 - 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/Dioxus.toml b/Dioxus.toml index 2b5e74e..4d89af5 100644 --- a/Dioxus.toml +++ b/Dioxus.toml @@ -12,7 +12,7 @@ reload_html = true index_on_404 = true [web.resource] -style = ["https://cdn.jsdelivr.net/npm/tailwindcss@3.4.11/dist/tailwind.min.css"] +# Tailwind CSS is loaded via script tag in index.html [web.resource.dev] # Development resources diff --git a/index.html b/index.html index 9b2aafe..80044c5 100644 --- a/index.html +++ b/index.html @@ -16,7 +16,7 @@ - +