mirror of
https://github.com/greflm13/StaticGalleryBuilder.git
synced 2026-02-05 02:59:27 +00:00
moved item name replace
This commit is contained in:
@@ -190,8 +190,7 @@ class PhotoGallery {
|
|||||||
const searchParams = new URLSearchParams(window.location.search);
|
const searchParams = new URLSearchParams(window.location.search);
|
||||||
this.shown = [];
|
this.shown = [];
|
||||||
let path = decodeURIComponent(
|
let path = decodeURIComponent(
|
||||||
window.location.origin +
|
window.location.origin + window.location.pathname.replace("index.html", "")
|
||||||
window.location.pathname.replace("index.html", "")
|
|
||||||
);
|
);
|
||||||
if (path.startsWith("null")) {
|
if (path.startsWith("null")) {
|
||||||
path = window.location.protocol + "//" + path.substring(4);
|
path = window.location.protocol + "//" + path.substring(4);
|
||||||
@@ -226,7 +225,7 @@ class PhotoGallery {
|
|||||||
|
|
||||||
if (include || selectedTags.length === 0) {
|
if (include || selectedTags.length === 0) {
|
||||||
if (!isRecursiveChecked) {
|
if (!isRecursiveChecked) {
|
||||||
if (decodeURIComponent(item.src.replace(item.name, "")) === path) {
|
if (decodeURIComponent(item.src).replace(item.name, "") === path) {
|
||||||
this.shown.push(item);
|
this.shown.push(item);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user