fix (image): disable pagination from iframe

This commit is contained in:
MickaelK
2025-06-17 17:37:53 +10:00
parent 0179f3eea0
commit d20b4483b7

View File

@ -14,6 +14,7 @@ import { sort } from "../../filespage/helper.js";
import { getState$ as getParams$, init as initParams } from "../../filespage/state_config.js"; import { getState$ as getParams$, init as initParams } from "../../filespage/state_config.js";
export default async function(render, { $img }) { export default async function(render, { $img }) {
if (window.self !== window.top) return;
const lsCache = await fscache().get(join(location, getCurrentPath() + "/../")); const lsCache = await fscache().get(join(location, getCurrentPath() + "/../"));
if (!lsCache) return; if (!lsCache) return;
const params = await getParams$().pipe(rxjs.first()).toPromise(); const params = await getParams$().pipe(rxjs.first()).toPromise();