Skip to content

Commit f022372

Browse files
committed
feat: update version to 0.0.16 and clean up analytics script in App component
1 parent 7c96458 commit f022372

File tree

3 files changed

+4
-16
lines changed

3 files changed

+4
-16
lines changed

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,6 @@ dist-ssr
2323
*.njsproj
2424
*.sln
2525
*.sw?
26-
.env
26+
.env
27+
28+
post.md

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
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",

src/main.tsx

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -45,23 +45,9 @@ const AppInitializer = ({ children }: AppInitializerProps) => {
4545

4646
const 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);

0 commit comments

Comments
 (0)