Skip to content

Commit a8bf11c

Browse files
authored
switch instance
1 parent c6a70b0 commit a8bf11c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

event-demo/src/pages/index.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export default function Home() {
3838
height="100%"
3939
server="299881420891881473"
4040
channel="355719584830980096"
41-
shard="https://emerald.widgetbot.io"
41+
shard="https://e-demo.widgetbot.co"
4242
token={token}
4343
/>
4444
</div>

event-demo/src/store/auth.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ const auth: AuthStore = {
3232
state.token = jsonwebtoken.sign({
3333
id: payload.name,
3434
username: payload.name,
35-
avatar: `http://localhost:3000/${payload.avatarUrl}`
35+
avatar: `${window.location.origin}/${payload.avatarUrl}`
3636
}, SECRET);
3737
}),
3838

0 commit comments

Comments
 (0)