We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8790a7a commit cb6afb0Copy full SHA for cb6afb0
1 file changed
src/routes/+error.svelte
@@ -1,10 +1,10 @@
1
<script lang="ts">
2
import { page } from "$app/stores";
3
- import { browser } from "$app/environment";
+ import { browser, building } from "$app/environment";
4
5
let alt = "\"This is Awkward\" - Thumbnail from March 12th, 2021"
6
7
- let attempt = Number($page.url.searchParams.get("attempt") ?? 0);
+ let attempt = !building ? Number($page.url.searchParams.get("attempt") ?? 0) : 0;
8
9
const reloadPages = [
10
"/",
0 commit comments