Skip to content

Commit

Permalink
Callback ID needs to start with a non-zero value
Browse files Browse the repository at this point in the history
  • Loading branch information
khawkins committed Oct 18, 2023
1 parent 0ce4e3b commit 5b9cfd1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resources/instructions/webviewMessaging.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const webviewMessaging = (function () {
sendMessageRequest: function (type, data, callback) {
let message;
if (callback) {
const asyncMessageRequestId = requestId++;
const asyncMessageRequestId = ++requestId;
asyncMessageCallbacks[asyncMessageRequestId] = callback;

message = { type, callbackId: asyncMessageRequestId, ...data };
Expand Down

0 comments on commit 5b9cfd1

Please sign in to comment.