bhl-forms 0.0.65 → 0.0.66
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -17872,7 +17872,8 @@ function _schemaFromUrl() {
|
|
|
17872
17872
|
return _schemaFromUrl.apply(this, arguments);
|
|
17873
17873
|
}
|
|
17874
17874
|
var getBaseDomain = () => {
|
|
17875
|
-
var
|
|
17875
|
+
var host = window.location.host.replace("webflow.io", "com");
|
|
17876
|
+
var parts = host.split(".");
|
|
17876
17877
|
return parts.slice(-2).join(".");
|
|
17877
17878
|
};
|
|
17878
17879
|
var flattenObj = (obj) => {
|
|
@@ -22352,6 +22353,7 @@ const _sfc_main = {
|
|
|
22352
22353
|
};
|
|
22353
22354
|
var apps = {};
|
|
22354
22355
|
var defaultSubmitUrl = "https://webhooks." + getBaseDomain() + "/api/v1/form_leads_ext";
|
|
22356
|
+
dbg("defaultSubmitUrl:", defaultSubmitUrl);
|
|
22355
22357
|
var init = () => {
|
|
22356
22358
|
var classes = generateClasses(theme);
|
|
22357
22359
|
var forms = window.bhlFormDefs || [];
|