Skip to content

Commit

Permalink
[bugfix] don't show horizons in PdfView
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-rind committed Aug 17, 2023
1 parent c894a2c commit 778acca
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/views/PdfView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,9 @@ export default defineComponent({
// eslint-disable-next-line @typescript-eslint/no-explicit-any
let hor: any = useRouter().currentRoute.value.query.hor;
hor = /true/i.test(hor);
hor ? "" : store.commit("view/toggle", "horizons");
if (/true/i.test(hor)) {
store.commit("view/enable", "horizons");
}
// eslint-disable-next-line @typescript-eslint/no-explicit-any
let con: any = useRouter().currentRoute.value.query.con;
Expand Down

0 comments on commit 778acca

Please sign in to comment.