From 7624d08a716fbebb338e44bcea7040ab0c0dbb2e Mon Sep 17 00:00:00 2001 From: Andre Zimpel Date: Sat, 23 Oct 2021 15:27:04 +0200 Subject: [PATCH] gatsby 4 peer dependency --- package.json | 2 +- src/services/chatwoot.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 6743454..d8fa934 100644 --- a/package.json +++ b/package.json @@ -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" }, diff --git a/src/services/chatwoot.js b/src/services/chatwoot.js index 6ce181b..7e5934a 100644 --- a/src/services/chatwoot.js +++ b/src/services/chatwoot.js @@ -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";