28 lines
863 B
HTML
28 lines
863 B
HTML
<!doctype html>
|
|
<html lang="zh-CN">
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
<title>GoChat WEB CHANNEL 测试</title>
|
|
</head>
|
|
<body>
|
|
<h1>GoChat WEB CHANNEL 测试</h1>
|
|
<script>
|
|
window.chatwootSettings = { "position": "right", "type": "standard", "launcherTitle": "" };
|
|
(function (d, t) {
|
|
var BASE_URL = "${WEB_CHANNEL_BASE_URL}";
|
|
var g = d.createElement(t), s = d.getElementsByTagName(t)[0];
|
|
g.src = BASE_URL + "/sdk/js/sdk.js";
|
|
g.async = true;
|
|
s.parentNode.insertBefore(g, s);
|
|
g.onload = function () {
|
|
window.chatwootSDK.run({
|
|
websiteToken: "${WEB_CHANNEL_WEBSITE_TOKEN}",
|
|
baseUrl: BASE_URL
|
|
});
|
|
};
|
|
})(document, "script");
|
|
</script>
|
|
</body>
|
|
</html>
|