From e2831d7c6bf01f35f1943cbf329c2b4d3834b50d Mon Sep 17 00:00:00 2001 From: Sebastian Hugentobler Date: Thu, 23 Feb 2023 13:45:18 +0100 Subject: [PATCH] remove time parameter, it's not useful right now --- assets/index.js | 1 - src/action.rs | 1 - 2 files changed, 2 deletions(-) diff --git a/assets/index.js b/assets/index.js index 12fd160..74ef997 100644 --- a/assets/index.js +++ b/assets/index.js @@ -58,7 +58,6 @@ function onInput(event) { if (!validEvents.includes(event.inputType)) return; const payload = { client: uuid, - time: performance.now(), action: event.inputType, data: event.data, start: selectionStart, diff --git a/src/action.rs b/src/action.rs index 59864e8..1feafe2 100644 --- a/src/action.rs +++ b/src/action.rs @@ -22,7 +22,6 @@ enum ActionType { #[derive(Serialize, Deserialize)] pub(crate) struct Action { pub(crate) client: String, - time: u64, data: Option, action: ActionType, start: usize,