mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-15 16:57:09 +00:00
36 lines
1.2 KiB
Twig
36 lines
1.2 KiB
Twig
<!DOCTYPE html>
|
|
<html lang="{{ trans('config.html_language') }}">
|
|
<head>
|
|
<base href="{{ route('index') }}/" />
|
|
<meta charset="utf-8">
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
<title>Firefly III
|
|
{% if title != "Firefly" and title != "" %}
|
|
// {{ title }}
|
|
{% endif %}
|
|
|
|
{% if subTitle %}
|
|
// {{ subTitle }}
|
|
{% endif %}</title>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<link rel="stylesheet" href="v2/plugins/local-fonts/gf-source.css" nonce="{{ JS_NONCE }}">
|
|
<link rel="stylesheet" href="v2/css/app.css" nonce="{{ JS_NONCE }}">
|
|
</head>
|
|
<body class="hold-transition login-page">
|
|
{% block content %}{% endblock %}
|
|
{% block scripts %}{% endblock %}
|
|
|
|
<script nonce="{{ JS_NONCE }}">
|
|
// Initialize the service worker
|
|
if ('serviceWorker' in navigator) {
|
|
navigator.serviceWorker.register('serviceworker.js?v={{ FF_VERSION }}', {
|
|
scope: '{{ route('index') }}'
|
|
}).then(
|
|
() => console.log('ServiceWorker registration successful'),
|
|
(err) => console.log('ServiceWorker registration failed: ', err)
|
|
);
|
|
}
|
|
</script>
|
|
</body>
|
|
</html>
|