.. / webwhiz
Star Fork

WebWhiz allows you to create an AI chatbot that knows everything about your product and can instantly respond to your customer’s queries.

webwhiz
webwhiz-ai
...

Latest

<any> @id @data-* ⏱️ before-load
More information

Root Cause

Source: https://github.com/webwhiz-ai/webwhiz/blob/2.0.0-beta.5/widget/webwhiz-sdk.js#L267

function __WEBWHIZ__getWidgetURL() {
    const scriptEl = document.getElementById("__webwhizSdk__");
    const baseURL = scriptEl.getAttribute('widgetUrl') || scriptEl.getAttribute('data-widget-url');
    return baseURL || 'https://widget.webwhiz.ai/';
}

Source: https://github.com/webwhiz-ai/webwhiz/blob/2.0.0-beta.5/widget/webwhiz-sdk.js#L152

var __WEBWHIZ__URL = __WEBWHIZ__getWidgetURL();

// [...]

ifrm.setAttribute("src", __WEBWHIZ__URL + '?kbId=' + kbId +'&baseUrl=' + baseUrl);

Found by @kevin_mizu.


1.0.0

<any> @id @custom ⏱️ before-load
More information

Root Cause

var e=function(){let e=document.getElementById("__webwhizSdk__").getAttribute("widgetUrl");return e||"https://widget.webwhiz.ai/"}();

// [...]

i=document.createElement("iframe");

// [...]

i.setAttribute("src",e+"?kbId="+a+"&baseUrl="+s)})

Found by @kevin_mizu.


Source | History