crosstalk-comments-livechat-sdk 0.0.6-beta.3 → 0.0.6-beta.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -118,13 +118,17 @@ function newGChat(obj, parentDiv, wp, theme) {
|
|
|
118
118
|
}
|
|
119
119
|
export class CrossTalkChatEmbed {
|
|
120
120
|
render() {
|
|
121
|
-
|
|
121
|
+
const link = document.createElement('link');
|
|
122
|
+
link.rel = 'stylesheet';
|
|
123
|
+
link.href = 'https://widgets.crosstalk.cc/tab_livechat.css';
|
|
124
|
+
document.head.appendChild(link);
|
|
122
125
|
var parentDiv = document.getElementById("crosstalkChatHolder");
|
|
123
126
|
if (!parentDiv) {
|
|
124
127
|
parentDiv = document.createElement("div");
|
|
125
128
|
parentDiv.id = "crosstalkChatHolder";
|
|
126
129
|
document.body.appendChild(parentDiv);
|
|
127
130
|
}
|
|
131
|
+
parentDiv.setAttribute("class", "crosstalk_parent");
|
|
128
132
|
if (!this.config.theme)
|
|
129
133
|
this.config.theme = "light";
|
|
130
134
|
this.config.pageIDs.forEach(pageID => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "crosstalk-comments-livechat-sdk",
|
|
3
|
-
"version": "0.0.6-beta.
|
|
3
|
+
"version": "0.0.6-beta.5",
|
|
4
4
|
"description": "Add Comments, Live Chat, and Video Player Embeds to your website with CrossTalk Comments and Live Chat!",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|