summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2019-05-18 08:29:21 +0200
committerDaniel Friesel <derf@finalrewind.org>2019-05-18 08:29:39 +0200
commit283f5aad0478059414f9fdfbfe2a14f35e07251a (patch)
tree48e3e4338b4522a79ee600c8bcc1d69ec26c7c7e
parent547a96d28f2f38d548222831eaad32f75fabaad6 (diff)
remove debug output
-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>