Skip to content

Commit

Permalink
🐛 Fix(PostChat): null pointer rrror
Browse files Browse the repository at this point in the history
  • Loading branch information
Lruihao committed Dec 19, 2024
1 parent 036cbb4 commit 45ce867
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions assets/js/theme.js
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
2 changes: 1 addition & 1 deletion layouts/partials/init/index.html
Original file line number Diff line number Diff line change
@@ -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" . -}}
Expand Down

0 comments on commit 45ce867

Please sign in to comment.