Skip to content

Commit

Permalink
Remove no longer needed link interactivity attempt
Browse files Browse the repository at this point in the history
  • Loading branch information
keianhzo committed Jun 1, 2023
1 parent a8bf6c9 commit 668db96
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/inflators/link.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { addComponent } from "bitecs";
import { CursorRaycastable, Link, RemoteHoverTarget } from "../bit-components";
import { Link } from "../bit-components";
import { HubsWorld } from "../app";

export type LinkParams = {
Expand All @@ -8,8 +8,6 @@ export type LinkParams = {

export function inflateLink(world: HubsWorld, eid: number, params: LinkParams): number {
addComponent(world, Link, eid);
addComponent(world, RemoteHoverTarget, eid);
addComponent(world, CursorRaycastable, eid);
Link.url[eid] = APP.getSid(params.href);
return eid;
}

0 comments on commit 668db96

Please sign in to comment.