Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion clientside/boot.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,5 @@ def extend_bootinfo(bootinfo):
bootinfo.subscription_expired = True

bootinfo.chat_widget_base_url = frappe.conf.chat_widget_base_url
bootinfo.chat_widget_token = frappe.conf.chat_widget_token
bootinfo.chat_widget_token = frappe.conf.chat_widget_token
bootinfo.chat_widget_disabled = frappe.conf.chat_widget_disabled
2 changes: 2 additions & 0 deletions clientside/public/js/support_widget.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
$(document).ready(function () {
const baseUrl = frappe.boot.chat_widget_base_url;
const token = frappe.boot.chat_widget_token;
const disabled = frappe.boot.chat_widget_disabled;
if (!token || !baseUrl) return;
if (disabled) return;

(function(d, t) {
var BASE_URL = baseUrl;
Expand Down
Loading