diff --git a/packages/embeds/js/package.json b/packages/embeds/js/package.json index be84a8e4b..d7f621999 100644 --- a/packages/embeds/js/package.json +++ b/packages/embeds/js/package.json @@ -1,6 +1,6 @@ { "name": "@typebot.io/js", - "version": "0.0.71", + "version": "0.0.72", "description": "Javascript library to display typebots on your website", "type": "module", "main": "dist/index.js", diff --git a/packages/embeds/js/src/utils/injectCustomHeadCode.ts b/packages/embeds/js/src/utils/injectCustomHeadCode.ts deleted file mode 100644 index 56ca5f32d..000000000 --- a/packages/embeds/js/src/utils/injectCustomHeadCode.ts +++ /dev/null @@ -1,33 +0,0 @@ -import { isNotDefined } from '@typebot.io/lib/utils' - -export const injectCustomHeadCode = (customHeadCode: string) => { - customHeadCode = customHeadCode.replace( - /` - ) - const headCodes = customHeadCode.split('') - headCodes.forEach((headCode) => { - const [codeToInject, noScriptContentToInject] = headCode.split('') + headCodes.forEach((headCode) => { + const [codeToInject, noScriptContentToInject] = headCode.split('