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:
Brandon Thomas
2024-03-22 01:32:54 -04:00
parent 97a4aa5716
commit cd19b3e593
+7
View File
@@ -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);