mirror of
https://github.com/jzillmann/pdf-to-markdown.git
synced 2024-12-28 01:08:57 +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 onlyRelevantItems = true;
|
||||
|
||||
let { pagePinned } = pageControl;
|
||||
|
||||
$: canNext = $debugStage + 1 < stageNames.length;
|
||||
$: canPrev = $debugStage > 0;
|
||||
</script>
|
||||
|
@ -9,6 +9,9 @@ export function debugFromParams(defaultValue: boolean): boolean {
|
||||
}
|
||||
|
||||
export function debugStageFromParams(defaultValue: number): number {
|
||||
if (!params.has('stage')) {
|
||||
return defaultValue;
|
||||
}
|
||||
const stage = +params.get('stage');
|
||||
if (!Number.isInteger(stage)) {
|
||||
return defaultValue;
|
||||
|
Loading…
Reference in New Issue
Block a user