Skip to content

Commit bcac5e7

Browse files
authored
Merge pull request #294 from clams-tech/release/2.5.1
Release 2.5.1
2 parents 0656232 + 3120a00 commit bcac5e7

File tree

6 files changed

+25
-15
lines changed

6 files changed

+25
-15
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "remote",
3-
"version": "2.5.0",
3+
"version": "2.5.1",
44
"scripts": {
55
"dev": "vite dev",
66
"dev-https": "vite dev --mode https",

src/routes/channels/open/+page.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
import type { PageLoad } from './$types'
22

33
export const load: PageLoad = async ({ url }) => {
4-
const address = url.searchParams.get('address')
5-
return { address }
4+
if (typeof window !== 'undefined') {
5+
const address = url.searchParams.get('address')
6+
return { address }
7+
}
68
}

src/routes/input/+page.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
import type { PageLoad } from './$types'
22

33
export const load: PageLoad = async ({ url }) => {
4-
const value = url.searchParams.get('value')
4+
if (typeof window !== 'undefined') {
5+
const value = url.searchParams.get('value')
56

6-
return {
7-
value
7+
return {
8+
value
9+
}
810
}
911
}

src/routes/plugins/clboss/+page.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
import type { PageLoad } from './$types'
22

33
export const load: PageLoad = async ({ url }) => {
4-
const { searchParams } = url
5-
const wallet = searchParams.get('wallet')
4+
if (typeof window !== 'undefined') {
5+
const { searchParams } = url
6+
const wallet = searchParams.get('wallet')
67

7-
return { wallet }
8+
return { wallet }
9+
}
810
}

src/routes/plugins/prism/+page.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
import type { PageLoad } from './$types'
22

33
export const load: PageLoad = async ({ url }) => {
4-
const { searchParams } = url
5-
const wallet = searchParams.get('wallet')
4+
if (typeof window !== 'undefined') {
5+
const { searchParams } = url
6+
const wallet = searchParams.get('wallet')
67

7-
return { wallet }
8+
return { wallet }
9+
}
810
}
Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
import type { PageLoad } from './$types'
22

33
export const load: PageLoad = async ({ url }) => {
4-
const { searchParams } = url
5-
const wallet = searchParams.get('wallet')
4+
if (typeof window !== 'undefined') {
5+
const { searchParams } = url
6+
const wallet = searchParams.get('wallet')
67

7-
return { wallet }
8+
return { wallet }
9+
}
810
}

0 commit comments

Comments
 (0)