The frontend Sentry script was causing CORS and Content Security Policy errors. Since backend error tracking is already configured with Sentry, the frontend SDK is not essential and has been removed to prevent these errors. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
71 lines
2.2 KiB
Text
71 lines
2.2 KiB
Text
<!DOCTYPE html>
|
|
<html lang="en" data-theme="light">
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
<meta name="csrf-token" content={get_csrf_token()} />
|
|
<script>
|
|
(function() {
|
|
try {
|
|
var theme = (typeof localStorage !== 'undefined' && localStorage.getItem('theme')) || 'auto';
|
|
if(theme === 'auto') {
|
|
if(window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches) {
|
|
document.documentElement.setAttribute('data-theme', 'dark');
|
|
} else {
|
|
document.documentElement.setAttribute('data-theme', 'light');
|
|
}
|
|
} else {
|
|
document.documentElement.setAttribute('data-theme', theme);
|
|
}
|
|
} catch(e) {
|
|
document.documentElement.setAttribute('data-theme', 'light');
|
|
}
|
|
})();
|
|
</script>
|
|
<.live_title suffix=" · aprs.me">
|
|
{assigns[:page_title] || "Aprs"}
|
|
</.live_title>
|
|
<link phx-track-static rel="stylesheet" href={~p"/assets/css/app.css"} />
|
|
<link
|
|
rel="stylesheet"
|
|
href="https://unpkg.com/leaflet@1.9.4/dist/leaflet.css"
|
|
integrity="sha256-p4NxAoJBhIIN+hmNHrzRCf9tD/miZyoHS5obTRR9BMY="
|
|
crossorigin=""
|
|
/>
|
|
<script
|
|
defer
|
|
phx-track-static
|
|
type="text/javascript"
|
|
src="https://unpkg.com/leaflet@1.9.4/dist/leaflet.js"
|
|
data-source-map="false"
|
|
>
|
|
</script>
|
|
<%!-- Load Leaflet.heat after Leaflet is loaded --%>
|
|
<script
|
|
defer
|
|
phx-track-static
|
|
type="text/javascript"
|
|
src="https://cdn.jsdelivr.net/npm/leaflet.heat@0.2.0/dist/leaflet-heat.js"
|
|
>
|
|
</script>
|
|
<script
|
|
defer
|
|
phx-track-static
|
|
type="text/javascript"
|
|
src="https://cdn.jsdelivr.net/npm/chart.js@4.5.0/dist/chart.umd.js"
|
|
>
|
|
</script>
|
|
<script
|
|
defer
|
|
phx-track-static
|
|
type="text/javascript"
|
|
src="https://cdn.jsdelivr.net/npm/chartjs-adapter-date-fns@3.0.0/dist/chartjs-adapter-date-fns.bundle.min.js"
|
|
>
|
|
</script>
|
|
<script defer phx-track-static type="text/javascript" src={~p"/assets/app.js"}>
|
|
</script>
|
|
</head>
|
|
<body class={body_class(assigns)}>
|
|
{@inner_content}
|
|
</body>
|
|
</html>
|