Skip to content

Commit

Permalink
import json directly
Browse files Browse the repository at this point in the history
  • Loading branch information
thisisjofrank committed Apr 1, 2022
1 parent 22b3a4a commit 7f8c40e
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions app/HubSpotUi.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,10 @@
import config from "./hubSpotConfig.json"

export class HubSpotUi {
public static createForm(onSubmit) {
const forms = window["hbspt"].forms;

const hubSpotConfig = {
region: "na1",
portalId: "6939709",
formId: "f8095b78-3876-4595-be1c-ec04d3789d5a",
target: "#signup-form",
};

//fetch("/hubSpotConfig.json").then((r) => r.json()).then(forms.create);
forms.create(hubSpotConfig);
forms.create(config);

window.addEventListener("message", (event) => {
if (
Expand Down

0 comments on commit 7f8c40e

Please sign in to comment.