Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions packages/runtime-common/realm-index-card.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,7 @@ export function isRealmIndexCardId(
typeof realm === 'string' ? new URL(realm) : realm,
);
let cardURL = cardIdToURL(cardId);
return (
realmPaths.inRealm(cardURL) &&
realmPaths.local(cardURL) === 'index'
);
return realmPaths.inRealm(cardURL) && realmPaths.local(cardURL) === 'index';
} catch {
return false;
}
Expand Down
5 changes: 1 addition & 4 deletions packages/runtime-common/url.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,7 @@ export function relativeURL(
if (realmURL) {
let realmPath = new RealmPaths(realmURL);
// don't return a relative URL for URL that is outside of our realm
if (
realmPath.inRealm(relativeTo) &&
!realmPath.inRealm(url)
) {
if (realmPath.inRealm(relativeTo) && !realmPath.inRealm(url)) {
return undefined;
}
}
Expand Down
Loading