mirror of
https://github.com/Colin-XKL/Colinx-Blog.git
synced 2026-01-12 10:41:34 +08:00
fix sentry script
This commit is contained in:
@@ -44,7 +44,6 @@
|
|||||||
id: location.pathname, // Ensure uniqueness and length less than 50
|
id: location.pathname, // Ensure uniqueness and length less than 50
|
||||||
distractionFreeMode: false // Facebook-like distraction free mode
|
distractionFreeMode: false // Facebook-like distraction free mode
|
||||||
});
|
});
|
||||||
|
|
||||||
gitalk.render('gitalk-container');
|
gitalk.render('gitalk-container');
|
||||||
</script>
|
</script>
|
||||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/gitalk@1/dist/gitalk.css">
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/gitalk@1/dist/gitalk.css">
|
||||||
@@ -53,13 +52,9 @@
|
|||||||
integrity="sha384-1k7XKRQgqjUbNyG2sI+qsY8HTHMOeLdycMx6hoGuNSANZ3WrMa3LXkr+M4t+SIpF"
|
integrity="sha384-1k7XKRQgqjUbNyG2sI+qsY8HTHMOeLdycMx6hoGuNSANZ3WrMa3LXkr+M4t+SIpF"
|
||||||
crossorigin="anonymous"></script>
|
crossorigin="anonymous"></script>
|
||||||
<script>
|
<script>
|
||||||
import * as Sentry from "@sentry/browser";
|
|
||||||
import { Integrations } from "@sentry/tracing";
|
|
||||||
|
|
||||||
Sentry.init({
|
Sentry.init({
|
||||||
dsn: "https://446fb53b106744b1b70e1074e68a5e71@o850059.ingest.sentry.io/6077493",
|
dsn: "https://446fb53b106744b1b70e1074e68a5e71@o850059.ingest.sentry.io/6077493",
|
||||||
integrations: [new Integrations.BrowserTracing()],
|
integrations: [new Integrations.BrowserTracing()],
|
||||||
|
|
||||||
// Set tracesSampleRate to 1.0 to capture 100%
|
// Set tracesSampleRate to 1.0 to capture 100%
|
||||||
// of transactions for performance monitoring.
|
// of transactions for performance monitoring.
|
||||||
// We recommend adjusting this value in production
|
// We recommend adjusting this value in production
|
||||||
|
|||||||
Reference in New Issue
Block a user