Skip to content

Commit

Permalink
gatsby 4 peer dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
andrezimpel committed Oct 23, 2021
1 parent 264d1d1 commit 7624d08
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
"main": "index.js",
"types": "index.d.ts",
"peerDependencies": {
"gatsby": "^2.24.77 || ^4.0.0",
"gatsby": "^2.24.77 || ^3.0.0 || ^4.0.0",
"react": "^16.13.1 || ^17.0.1",
"react-dom": "^16.13.1 || ^17.0.1"
},
Expand Down
4 changes: 2 additions & 2 deletions src/services/chatwoot.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ const {
exports.addChatwoot = (options) => {
return new Promise((resolve, reject) => {
if (window.gatsbyPluginGDPRCookiesChatwootAdded) return resolve(true)

/* eslint-disable */
(function(d,t) {
!(function(d,t) {
var BASE_URL=options.baseUrl;
var g=d.createElement(t),s=d.getElementsByTagName(t)[0];
g.src=BASE_URL+"/packs/js/sdk.js";
Expand Down

0 comments on commit 7624d08

Please sign in to comment.