From 0e0c34bb20edd687383e2c740139fd629b5a12c4 Mon Sep 17 00:00:00 2001 From: Natsumi Date: Mon, 21 Mar 2022 08:53:40 +1300 Subject: [PATCH] Short name URLs gone for publics --- html/src/app.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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