|
|
|
@ -6,6 +6,7 @@ |
|
|
|
import { getContext } from "svelte" |
|
|
|
import { fade } from "svelte/transition" |
|
|
|
import { post } from "builderStore/api" |
|
|
|
import analytics from "../../analytics" |
|
|
|
|
|
|
|
const { open, close } = getContext("simple-modal") |
|
|
|
|
|
|
|
@ -38,6 +39,10 @@ |
|
|
|
|
|
|
|
const res = await response.json() |
|
|
|
|
|
|
|
analytics.captureEvent("web_app_created", { |
|
|
|
name, |
|
|
|
description, |
|
|
|
}) |
|
|
|
$goto(`./${res._id}`) |
|
|
|
} catch (error) { |
|
|
|
console.error(error) |
|
|
|
|