Skip to content

Commit 95c30be

Browse files
committed
优化 代码
1 parent 5a0b9c4 commit 95c30be

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Hostloc-Enhanced.user.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@
9595
if (document.getElementById('um')){
9696
loginStatus = true;
9797
} else {
98-
loginStatus = (discuz_uid != '0' ? true : false);
98+
if (typeof discuz_uid != 'undefined') loginStatus = (discuz_uid != '0' ? true : false);
9999
}
100100

101101
// 默认 ID 为 0

0 commit comments

Comments
 (0)