Skip to content

Commit 7ef75d5

Browse files
committed
Add shynet
1 parent 3acc7bc commit 7ef75d5

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

src/layouts/Base/Base.astro

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ interface Props {
55
}
66
77
const { title } = Astro.props;
8+
const isProduction = import.meta.env.ENVIRONMENT === "production";
89
---
910

1011
<!doctype html>
@@ -24,6 +25,19 @@ const { title } = Astro.props;
2425
rel="stylesheet"
2526
href="https://cdn.jsdelivr.net/npm/@mdi/[email protected]/css/materialdesignicons.min.css"
2627
/>
28+
{
29+
isProduction && (
30+
<>
31+
<noscript>
32+
<img src="https://shynet-mpb4.onrender.com/ingress/cc9fac9d-2deb-4201-822e-3625f4530b8f/pixel.gif" />
33+
</noscript>
34+
<script
35+
defer
36+
src="https://shynet-mpb4.onrender.com/ingress/cc9fac9d-2deb-4201-822e-3625f4530b8f/script.js"
37+
/>
38+
</>
39+
)
40+
}
2741
</head>
2842
<body>
2943
<slot />

0 commit comments

Comments
 (0)