From 68380a72cf4d11b694dad8eecea06037a74e8a39 Mon Sep 17 00:00:00 2001 From: "B. Petersen" Date: Sun, 24 Nov 2024 17:39:58 +0100 Subject: [PATCH] remove description parameter from sendUpdate() --- index.html | 2 +- webxdc.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/index.html b/index.html index 2db6a44..594563e 100644 --- a/index.html +++ b/index.html @@ -56,7 +56,7 @@

Hello

msg, }, info, - }, info); + }); } (function () { diff --git a/webxdc.js b/webxdc.js index 8fb5ee7..4c59f28 100644 --- a/webxdc.js +++ b/webxdc.js @@ -109,7 +109,7 @@ window.webxdc = (() => { console.log("[Webxdc] WARNING: getAllUpdates() is deprecated."); return Promise.resolve([]); }, - sendUpdate: (update, description) => { + sendUpdate: (update) => { var updates = getUpdates(); var serial = updates.length + 1; var _update = { @@ -123,7 +123,7 @@ window.webxdc = (() => { window.localStorage.setItem(updatesKey, JSON.stringify(updates)); _update.max_serial = serial; console.log( - '[Webxdc] description="' + description + '", ' + JSON.stringify(_update) + '[Webxdc] ' + JSON.stringify(_update) ); updateListener(_update); },