We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8f5a9ee commit 7f2d9ffCopy full SHA for 7f2d9ff
1 file changed
src/webxdc.js
@@ -230,11 +230,14 @@ window.webxdc = (() => {
230
});
231
232
const params = new URLSearchParams(window.location.hash.substr(1));
233
+ const selfAddr = params.get("addr") || "device0@local.host";
234
return {
235
sendUpdateInterval: 1000,
236
sendUpdateMaxSize: 999999,
- selfAddr: params.get("addr") || "device0@local.host",
237
+ selfAddr,
238
selfName: params.get("name") || "device0",
239
+ isAppSender: selfAddr === "device0@local.host",
240
+ isBroadcast: false,
241
setUpdateListener: (cb, serial = 0) => {
242
const updates = getUpdates();
243
const maxSerial = updates.length;
0 commit comments