Skip to content

Commit 7498627

Browse files
committed
replaced all cdn instances
1 parent ac1ed32 commit 7498627

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/ui/src/views/chatflows/EmbedChat.jsx

+4-4
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ function a11yProps(index) {
4040

4141
const embedPopupHtmlCode = (chatflowid) => {
4242
return `<script type="module">
43-
import Chatbot from "https://cdn.jsdelivr.net/npm/flowise-embed/dist/web.js"
43+
import Chatbot from "https://cdn.jsdelivr.net/gh/dogma4you/FlowiseChatEmbed@latest/dist/web.js"
4444
Chatbot.init({
4545
chatflowid: "${chatflowid}",
4646
apiHost: "${baseURL}",
@@ -61,7 +61,7 @@ const App = () => {
6161
const embedFullpageHtmlCode = (chatflowid) => {
6262
return `<flowise-fullchatbot></flowise-fullchatbot>
6363
<script type="module">
64-
import Chatbot from "https://cdn.jsdelivr.net/npm/flowise-embed/dist/web.js"
64+
import Chatbot from "https://cdn.jsdelivr.net/gh/dogma4you/FlowiseChatEmbed@latest/dist/web.js"
6565
Chatbot.initFull({
6666
chatflowid: "${chatflowid}",
6767
apiHost: "${baseURL}",
@@ -160,7 +160,7 @@ const chatwindowConfig = (isReact = false) => {
160160

161161
const embedPopupHtmlCodeCustomization = (chatflowid) => {
162162
return `<script type="module">
163-
import Chatbot from "https://cdn.jsdelivr.net/npm/flowise-embed/dist/web.js"
163+
import Chatbot from "https://cdn.jsdelivr.net/gh/dogma4you/FlowiseChatEmbed@latest/dist/web.js"
164164
Chatbot.init({
165165
chatflowid: "${chatflowid}",
166166
apiHost: "${baseURL}",
@@ -292,7 +292,7 @@ const EmbedChat = ({ chatflowid }) => {
292292
>
293293
version
294294
</a>
295-
:&nbsp;<code>{`https://cdn.jsdelivr.net/npm/flowise-embed@<version>/dist/web.js`}</code>
295+
:&nbsp;<code>{`https://cdn.jsdelivr.net/gh/dogma4you/FlowiseChatEmbed@<version>/dist/web.js`}</code>
296296
</p>
297297
</span>
298298
<div style={{ height: 10 }}></div>

0 commit comments

Comments
 (0)