Skip to content

Commit 96c7224

Browse files
committed
closeIframe catch
1 parent a09c784 commit 96c7224

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

server/controllers/handleSwitchTrack.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,13 @@ export const handleSwitchTrack = async (req, res) => {
4141
sceneDropId,
4242
});
4343

44-
await visitor.closeIframe(assetId);
44+
visitor.closeIframe(assetId).catch((error) =>
45+
errorHandler({
46+
error,
47+
functionName: "handleSwitchTrack",
48+
message: "Error closing iframe",
49+
}),
50+
);
4551

4652
const numberOfCheckpoints = await world.fetchDroppedAssetsWithUniqueName({
4753
uniqueName: "race-track-checkpoint",

0 commit comments

Comments
 (0)