From 7103c0b2e4370b9f6efcd8538b17ef76986417e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20Viguier?= Date: Sat, 24 Jun 2023 11:10:14 +0200 Subject: [PATCH] sync Lychee-front (#1897) --- public/Lychee-front | 2 +- public/dist/frontend.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/public/Lychee-front b/public/Lychee-front index 5207d16086b..3f6cdb19511 160000 --- a/public/Lychee-front +++ b/public/Lychee-front @@ -1 +1 @@ -Subproject commit 5207d16086b970b1f806fb7426da3686ddbdce53 +Subproject commit 3f6cdb1951178eef3bd70d17b939f2025b928fa1 diff --git a/public/dist/frontend.js b/public/dist/frontend.js index bbfe9d53596..173d3f442c6 100644 --- a/public/dist/frontend.js +++ b/public/dist/frontend.js @@ -3236,7 +3236,7 @@ var params={};if(isLegacyID(albumID))params.albumID=parseInt(albumID,10);if(isLe * * @param {boolean} [autoplay=true] * @returns {void} - */lychee.load=function(){var autoplay=arguments.length>0&&arguments[0]!==undefined?arguments[0]:true;var albumID="";var photoID="";var viewMatch=document.location.href.match(/*#__PURE__*/_wrapRegExp(/\/view(?:\/|(\?p=))([-_0-9A-Za-z]+)$/,{photoID:2}));var hashMatch=document.location.hash.replace("#","").split("/");if(/\/frame\/?$/.test(document.location.href)){albumID="frame";photoID="";}else if(viewMatch!==null&&viewMatch.groups.photoID){albumID="view";photoID=viewMatch.groups.photoID;}else{albumID=hashMatch[0];if(albumID===SearchAlbumIDPrefix&&hashMatch.length>1){albumID+="/"+hashMatch[1];}photoID=hashMatch[album.isSearchID(albumID)?2:1];}contextMenu.close();multiselect.close();tabindex.reset();// If Lychee is currently in frame or view mode, we need to re-initialize. + */lychee.load=function(){var autoplay=arguments.length>0&&arguments[0]!==undefined?arguments[0]:true;var albumID="";var photoID="";var viewMatch=document.location.href.match(/*#__PURE__*/_wrapRegExp(/\/view(?:\/|(\?p=))([-_0-9A-Za-z]+)$/,{photoID:2}));var hashMatch=document.location.hash.replace("#","").split("/");if(/\/frame\/?$/.test(document.location.href)){albumID="frame";photoID="";}else if(viewMatch!==null&&viewMatch.groups.photoID){albumID="view";photoID=viewMatch.groups.photoID;}else{albumID=hashMatch[0];if(albumID===SearchAlbumIDPrefix&&hashMatch.length>1){albumID+="/"+decodeURIComponent(hashMatch[1]);}photoID=hashMatch[album.isSearchID(albumID)?2:1];}contextMenu.close();multiselect.close();tabindex.reset();// If Lychee is currently in frame or view mode, we need to re-initialize. // Note, this is a temporary nasty hack. // In an optimal world, we would simply call `lychee.setMode` to leave // view or frame mode and to enter gallery or public mode.