From cd19b3e593763844a5ec36dea8c397b45a089cfc Mon Sep 17 00:00:00 2001 From: Brandon Thomas Date: Fri, 22 Mar 2024 01:32:54 -0400 Subject: [PATCH] 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. --- studio-frontend/src/app/app.element.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/studio-frontend/src/app/app.element.ts b/studio-frontend/src/app/app.element.ts index b5fe25d..b7e55a8 100644 --- a/studio-frontend/src/app/app.element.ts +++ b/studio-frontend/src/app/app.element.ts @@ -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);