diff options
| author | LLLL Colonq <llll@colonq> | 2025-02-18 18:40:38 -0500 |
|---|---|---|
| committer | LLLL Colonq <llll@colonq> | 2025-02-18 18:40:38 -0500 |
| commit | baa7193345e9f0e9085bcb557e8e976d2d270867 (patch) | |
| tree | de922e51ef577b317c970facb6d4ae445a80c1de /src/UI.js | |
| parent | 34b49df0ab7336789e79590e51d4456f92024408 (diff) | |
Support shader upload
Diffstat (limited to 'src/UI.js')
| -rw-r--r-- | src/UI.js | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -26,3 +26,13 @@ export const _submitRedeem = (url) => (el) => () => { export const _setShader = (shader) => () => { window.wasmBindings.set_shader(shader); }; + +export const _submitShader = (url) => (shader) => () => { + const data = new FormData(); + data.append("name", "throw shade"); + data.append("input", shader); + fetch(url, { + method: "post", + body: data, + }); +}; |
