Prechádzať zdrojové kódy

remove latent comment with typo

Jonathan Kelley 7 mesiacov pred
rodič
commit
3d16ae855e
1 zmenil súbory, kde vykonal 0 pridanie a 24 odobranie
  1. 0 24
      packages/interpreter/src/ts/native.ts

+ 0 - 24
packages/interpreter/src/ts/native.ts

@@ -479,27 +479,3 @@ function getTargetId(target: EventTarget): NodeId | null {
 
   return parseInt(realId);
 }
-
-// function applyFileUpload() {
-//   let inputs = document.querySelectorAll("input");
-//   for (let input of inputs) {
-//     if (!input.getAttribute("data-dioxus-file-listener")) {
-//       // prevent file inputs from opening the file dialog on click
-//       const type = input.getAttribute("type");
-//       if (type === "file") {
-//         input.setAttribute("data-dioxus-file-listener", true);
-//         input.addEventListener("click", (event) => {
-//           let target = event.target;
-//           let target_id = find_real_id(target);
-//           if (target_id !== null) {
-//             const send = (event_name) => {
-//               const message = window.interpreter.serializeIpcMessage("file_diolog", { accept: target.getAttribute("accept"), directory: target.getAttribute("webkitdirectory") === "true", multiple: target.hasAttribute("multiple"), target: parseInt(target_id), bubbles: event_bubbles(event_name), event: event_name });
-//               window.ipc.postMessage(message);
-//             };
-//             send("change&input");
-//           }
-//           event.preventDefault();
-//         });
-//       }
-//     }
-// }