mirror of
https://github.com/mickael-kerjean/filestash.git
synced 2025-10-31 01:58:11 +08:00
fix (image): disable pagination from iframe
This commit is contained in:
@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user