Add glitch to homepage (#542)

This commit was merged in pull request #542.
This commit is contained in:
Kurt Hutten
2021-10-01 21:48:13 +10:00
committed by GitHub
parent 66dc04d98e
commit 6d0c832f6f
4 changed files with 26 additions and 1 deletions

View File

@@ -3,6 +3,7 @@ import { fileSave } from 'browser-fs-access'
import { MeshBasicMaterial, Mesh, Scene } from 'three'
import { STLExporter } from 'three/examples/jsm/exporters/STLExporter'
import { requestRender, State } from 'src/helpers/hooks/useIdeState'
import { toast } from '@redwoodjs/web/toast'
export const PullTitleFromFirstLine = (code = '') => {
const firstLine = code.split('\n').filter(identity)[0] || ''
@@ -53,6 +54,7 @@ export const makeStlDownloadHandler =
extensions: ['.stl'],
})
}
toast("CadHub is a work in process and We're still working out kinks with the STL download.")
if (geometry) {
if (
type === 'geometry' &&