mirror of
https://github.com/jzillmann/pdf-to-markdown.git
synced 2024-12-29 09:49:00 +01:00
Fix: take last stage from local storage
This commit is contained in:
parent
9fcb431a64
commit
bf81416925
@ -23,8 +23,6 @@
|
|||||||
export let groupingEnabled = true;
|
export let groupingEnabled = true;
|
||||||
export let onlyRelevantItems = true;
|
export let onlyRelevantItems = true;
|
||||||
|
|
||||||
let { pagePinned } = pageControl;
|
|
||||||
|
|
||||||
$: canNext = $debugStage + 1 < stageNames.length;
|
$: canNext = $debugStage + 1 < stageNames.length;
|
||||||
$: canPrev = $debugStage > 0;
|
$: canPrev = $debugStage > 0;
|
||||||
</script>
|
</script>
|
||||||
|
@ -9,6 +9,9 @@ export function debugFromParams(defaultValue: boolean): boolean {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export function debugStageFromParams(defaultValue: number): number {
|
export function debugStageFromParams(defaultValue: number): number {
|
||||||
|
if (!params.has('stage')) {
|
||||||
|
return defaultValue;
|
||||||
|
}
|
||||||
const stage = +params.get('stage');
|
const stage = +params.get('stage');
|
||||||
if (!Number.isInteger(stage)) {
|
if (!Number.isInteger(stage)) {
|
||||||
return defaultValue;
|
return defaultValue;
|
||||||
|
Loading…
Reference in New Issue
Block a user