summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xlib/Travelynx/Controller/Traveling.pm4
-rw-r--r--templates/layouts/default.html.ep5
2 files changed, 2 insertions, 7 deletions
diff --git a/lib/Travelynx/Controller/Traveling.pm b/lib/Travelynx/Controller/Traveling.pm
index f33a97f..3d2bb0c 100755
--- a/lib/Travelynx/Controller/Traveling.pm
+++ b/lib/Travelynx/Controller/Traveling.pm
@@ -10,9 +10,7 @@ sub homepage {
if ( $self->is_user_authenticated ) {
$self->render(
'landingpage',
-
- #version => $self->app->config->{version} // 'UNKNOWN',
- version => join( '|||', @{ $self->req->cookies } ),
+ version => $self->app->config->{version} // 'UNKNOWN',
with_autocomplete => 1,
with_geolocation => 1
);
diff --git a/templates/layouts/default.html.ep b/templates/layouts/default.html.ep
index 4b11a06..00d446a 100644
--- a/templates/layouts/default.html.ep
+++ b/templates/layouts/default.html.ep
@@ -120,10 +120,7 @@
<script>
if ('serviceWorker' in navigator) {
window.addEventListener('load', () => {
- navigator.serviceWorker.register('/service-worker.js')
- .then((reg) => {
- console.log('Service worker registered.', reg);
- });
+ navigator.serviceWorker.register('/service-worker.js');
});
}
</script>