🐛 Fix(PostChat): null pointer rrror

This commit is contained in:
Cell
2024-12-19 17:07:43 +08:00
parent 036cbb415b
commit 45ce8679ad
2 changed files with 2 additions and 3 deletions
+1 -2
View File
@@ -1148,8 +1148,7 @@ class FixIt {
}
initPostChatUser() {
window.postChat_mode = postChatConfig.userMode || 'iframe';
if (window.postChat_mode !== 'iframe' || !window.postChatUser) {
if (!window.postChatUser || !postChatConfig || postChatConfig.userMode === 'magic') {
return;
}
postChat_theme = this.isDark ? 'dark' : 'light';
+1 -1
View File
@@ -1,4 +1,4 @@
{{- .Scratch.Set "version" "v0.3.17-637c4641" -}}
{{- .Scratch.Set "version" "v0.3.17-036cbb41" -}}
{{- .Scratch.Set "this" dict -}}
{{- partial "init/detection-env.html" . -}}