File tree Expand file tree Collapse file tree 3 files changed +4
-16
lines changed
Expand file tree Collapse file tree 3 files changed +4
-16
lines changed Original file line number Diff line number Diff line change @@ -23,4 +23,6 @@ dist-ssr
2323* .njsproj
2424* .sln
2525* .sw ?
26- .env
26+ .env
27+
28+ post.md
Original file line number Diff line number Diff line change 11{
22 "name" : " duck-ui" ,
33 "private" : true ,
4- "version" : " 0.0.15 " ,
4+ "version" : " 0.0.16 " ,
55 "type" : " module" ,
66 "scripts" : {
77 "dev" : " vite" ,
Original file line number Diff line number Diff line change @@ -45,23 +45,9 @@ const AppInitializer = ({ children }: AppInitializerProps) => {
4545
4646const App = ( ) => {
4747 useEffect ( ( ) => {
48- // add umami analytics if the hostname is https://demo.duckui.com
49-
50- if ( window . location . hostname === "demo.duckui.com" ) {
51- const script = document . createElement ( "script" ) ;
52- script . src = "https://umami.duckui.com/script.js" ;
53- script . async = true ;
54- script . setAttribute (
55- "data-website-id" ,
56- "b79701f2-013e-4de6-b59f-8b456175c1da"
57- ) ;
58- document . body . appendChild ( script ) ;
59- }
6048
6149 const handleBeforeUnload = ( e : BeforeUnloadEvent ) => {
6250 e . preventDefault ( ) ;
63- return ( e . returnValue =
64- "Duck-UI runs on WASM and does not persist data. Reloading will make you lose all unsaved data." ) ;
6551 } ;
6652
6753 window . addEventListener ( "beforeunload" , handleBeforeUnload ) ;
You can’t perform that action at this time.
0 commit comments