From 0905e3c293ceb0f1d769513870c3931530d6331d Mon Sep 17 00:00:00 2001
From: Zero~Informatique
Date: Mon, 24 Feb 2020 23:24:07 +0100
Subject: viewer: disable the back command to prevent exiting the gallery

GitHub: Resolves #91
---
 viewer/src/views/MainLayout.vue | 1 +
 1 file changed, 1 insertion(+)

(limited to 'viewer/src/views/MainLayout.vue')

diff --git a/viewer/src/views/MainLayout.vue b/viewer/src/views/MainLayout.vue
index 272c045..2d74db9 100644
--- a/viewer/src/views/MainLayout.vue
+++ b/viewer/src/views/MainLayout.vue
@@ -43,6 +43,7 @@ export default class MainLayout extends Vue {
   scrollPositions: ScrollPosition = {};
 
   mounted() {
+    history.replaceState({ ldgallery: "ENTRYPOINT" }, "");
     this.fetchGalleryItems();
   }
 
-- 
cgit v1.2.3

