mirror of
https://github.com/mickael-kerjean/filestash
synced 2025-12-06 16:32:31 +01:00
fix (image): disable pagination from iframe
This commit is contained in:
parent
0179f3eea0
commit
d20b4483b7
1 changed files with 1 additions and 0 deletions
|
|
@ -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();
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue