Skip to content

Commit

Permalink
feat: switch to output mode if preview is present in URL search
Browse files Browse the repository at this point in the history
  • Loading branch information
pdanpdan committed Nov 19, 2023
1 parent 760a59b commit 99094b1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,12 @@ const previewOptions = {
].join('\n'),
};
const versions = parseVersions();
const hash = location.hash.slice(1);
const hash = location.hash.slice( 1 );
const store = useReplStore({
serializedState: hash,
versions,
showOutput: ( new URLSearchParams( location.search ) ).has( 'preview' ),
});
const { ssr } = store;
Expand Down

0 comments on commit 99094b1

Please sign in to comment.