Skip to content

Commit

Permalink
Fix when one is made
Browse files Browse the repository at this point in the history
  • Loading branch information
AnotherPillow committed May 15, 2024
1 parent 258d0a0 commit 43cfa53
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions src/routes/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,22 @@
let params = null as any
let beforeRe = ''
let afterRe = ''
let fixText = ''
onMount(() => {
params = new URLSearchParams(window.location.search);
})
let beforeRe = params?.get('before') ?? ''
let afterRe = params?.get('after') ?? ''
let fixText = params?.get('title') ?? ''
beforeRe = params?.get('before') ?? ''
afterRe = params?.get('after') ?? ''
fixText = params?.get('title') ?? ''
if (!beforeRe || !afterRe || !fixText) createMode = true
if (params?.has('creation')) createMode = true
})
if (!beforeRe || !afterRe || !fixText) createMode = true
if (params?.has('creation')) createMode = true
const handleUploadedFile: ChangeEventHandler<HTMLInputElement> = async (e) => {
const { files } = e.currentTarget
Expand Down

0 comments on commit 43cfa53

Please sign in to comment.