crosstalk-comments-livechat-sdk 0.0.6-beta.3 → 0.0.6-beta.4

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,7 +118,10 @@ function newGChat(obj, parentDiv, wp, theme) {
118
118
  }
119
119
  export class CrossTalkChatEmbed {
120
120
  render() {
121
- document.head.insertAdjacentHTML('beforebegin', '<link rel="stylesheet" href="https://widgets.crosstalk.cc/tab_livechat.css" />');
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");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "crosstalk-comments-livechat-sdk",
3
- "version": "0.0.6-beta.3",
3
+ "version": "0.0.6-beta.4",
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",