diff --git a/html/src/app.js b/html/src/app.js index 652d80e4..7d4a43e4 100644 --- a/html/src/app.js +++ b/html/src/app.js @@ -15066,7 +15066,10 @@ speechSynthesis.getVoices(); }); API.$on('INSTANCE:SHORTNAME', function (args) { - var url = `https://vrch.at/${args.json}`; + var url = ''; + if (args.json) { + url = `https://vrch.at/${args.json}`; + } $app.launchDialog.shortUrl = url; }); @@ -15085,7 +15088,7 @@ speechSynthesis.getVoices(); D.shortUrl = ''; D.url = getLaunchURL(L.worldId, L.instanceId); D.visible = true; - if (L.accessType === 'public' || L.userId === API.currentUser.id) { + if (L.userId === API.currentUser.id) { API.getInstanceShortName({ worldId: L.worldId, instanceId: L.instanceId