Skip to content

Commit cb87b9c

Browse files
committed
refactor: 更新脚本降低对浏览器的要求
1 parent d7e00f4 commit cb87b9c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/BootstrapBlazor/wwwroot/modules/client.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,6 @@ export async function getClientInfo(url) {
2424
if (result) {
2525
data.ip = result.Ip;
2626
}
27-
data.id = localStorage.getItem('bb_hub_connection_id') ?? result.Id;
27+
data.id = localStorage.getItem('bb_hub_connection_id') || result.Id;
2828
return data;
2929
}

0 commit comments

Comments
 (0)