mirror of
https://github.com/storytold/storyteller-bevy.git
synced 2026-10-17 00:13:17 +00:00
Comment out dev-only file save dialog
The `window.showSaveFilePicker()` is used in development to save `scn.ron` files. Since it's not defined in the source, it's breaking Netlify production builds. I'm commenting this out for now so we can unblock production builds, but feel free to restore this code/functionality for local testing.
This commit is contained in:
@@ -74,6 +74,12 @@ export class AppElement extends LitElement {
|
||||
try {
|
||||
const file = new File([scene], "scene.scn.ron", { type: "text/ron" });
|
||||
if (mock_save_load()) {
|
||||
/*
|
||||
// NB(brandon, 2024-03-22): Hey Lee-Orr, I'm commenting this out since the file
|
||||
picker isn't defined and the Netlify builds are breaking. Feel free to uncomment
|
||||
this for your testing. We probably just need a local definition file so the
|
||||
builds are happy.
|
||||
|
||||
let handle = await window.showSaveFilePicker({
|
||||
suggestedName: "scene",
|
||||
types: [{
|
||||
@@ -93,6 +99,7 @@ export class AppElement extends LitElement {
|
||||
bubbles: true,
|
||||
composed: true,
|
||||
}));
|
||||
*/
|
||||
|
||||
} else {
|
||||
const token = await this.api.createScene(file);
|
||||
|
||||
Reference in New Issue
Block a user