fix navigating when files are dropped

This commit is contained in:
Jonathan Kelley committed 2024-03-01 23:37:46 -08:00
1 parent 0ff0eb7846
commit 199173a409
23 files changed
+1242 -1026

No files matched your search

+2 -2
View File
@@ -1,5 +1,5 @@
use crate::{assets::*, edits::EditQueue};
use dioxus_interpreter_js::unified_bindings::SLEDGEHAMMER_JS;
use dioxus_interpreter_js::unified_bindings::{native_js, SLEDGEHAMMER_JS};
use std::path::{Path, PathBuf};
use wry::{
http::{status::StatusCode, Request, Response},
@@ -38,7 +38,7 @@ fn handle_edits_code() -> String {
}}"#
);
let mut interpreter = SLEDGEHAMMER_JS
let mut interpreter = native_js()
.replace("/*POST_HANDLE_EDITS*/", PREVENT_FILE_UPLOAD)
.replace("export", "")
+ &polling_request;