Skip to content

Commit

Permalink
Merge pull request #6167 from mozilla/remove_console_log
Browse files Browse the repository at this point in the history
Fix hubs room regex
  • Loading branch information
johnshaughnessy authored Jul 17, 2023
2 parents d52bd00 + 9c9e2f5 commit 4abb59a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions src/components/media-loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -374,8 +374,6 @@ AFRAME.registerComponent("media-loader", {
!src.match(hubsRoomRegex)?.groups.id &&
!src.match(localHubsRoomRegex)?.groups.id;

console.log("IS LOCAL ASSET?", isLocalAsset, src);

if (this.data.resolve && !src.startsWith("data:") && !src.startsWith("hubs:") && !isLocalAsset) {
const is360 = !!(this.data.mediaOptions.projection && this.data.mediaOptions.projection.startsWith("360"));
const quality = getDefaultResolveQuality(is360);
Expand Down
2 changes: 1 addition & 1 deletion src/utils/media-url-utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ export const isHubsRoomUrl = async url =>
(await isHubsServer(url)) &&
!(await isHubsAvatarUrl(url)) &&
!(await isHubsSceneUrl(url)) &&
!url.match(hubsRoomRegex)?.groups.id;
((await url.match(hubsRoomRegex)?.groups.id) || (await url.match(localHubsRoomRegex)?.groups.id));

export const isHubsDestinationUrl = async url =>
(await isHubsServer(url)) && ((await isHubsSceneUrl(url)) || (await isHubsRoomUrl(url)));
Expand Down

0 comments on commit 4abb59a

Please sign in to comment.