Skip to content

Commit a7a27de

Browse files
authored
Merge pull request #47 from herodevs/staging
Merge latest changes
2 parents 6a10ff8 + 5b99f52 commit a7a27de

File tree

2 files changed

+2
-14
lines changed

2 files changed

+2
-14
lines changed

scripts/global.js

+2-6
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,12 @@
1212
window.location.href.toLowerCase().indexOf('www.herodevs.com') > -1,
1313
};
1414
const HD_CONF = {
15-
LIB_SCRIPTS: ['log-rocket.js', 'hubspot.js', 'cta.js'],
15+
LIB_SCRIPTS: ['log-rocket.js', 'hubspot.js'],
1616
SCRIPT: {
1717
ENV: window.HD.IS_PROD ? 'main' : 'staging',
1818
PATH: `https://raw.githubusercontent.com/herodevs/webflow/${window.HD.IS_PROD ? 'main' : 'staging'}/scripts`,
1919
},
20-
FEATURES: [
21-
{
22-
script: 'pricing-columns.js',
23-
},
24-
],
20+
FEATURES: [],
2521
};
2622

2723
console.log(`BOOTING [${window.HD.IS_PROD ? 'PRODUCTION' : 'STAGING'}]`);

scripts/helpers/hubspot.js

-8
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,6 @@
44
REDIRECT_RULES: [],
55
};
66

7-
try {
8-
const rules = await fetch(
9-
'https://hd-webflow-api.netlify.app/api/form-redirects',
10-
).then(response => response.json());
11-
HS_CONF.REDIRECT_RULES.push(...(rules.items ?? []));
12-
console.log(HS_CONF.REDIRECT_RULES);
13-
} catch (err) {}
14-
157
$(`form[action^="${HS_CONF.ACTION}"]`).each(function (i) {
168
// intercept forms whos action goes to hubspot
179
$(this).find('input[type=checkbox]').val('true');

0 commit comments

Comments
 (0)