From 845f8344a90c3d151dbcd024d4240d1f8ef89339 Mon Sep 17 00:00:00 2001 From: xLuxy <67131061+xLuxy@users.noreply.github.com> Date: Sun, 11 Feb 2024 12:48:16 +0100 Subject: [PATCH] fix(shared): Prevent isValidFrame throwing an exception when there's no file name available --- shared/js/errors.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shared/js/errors.js b/shared/js/errors.js index d84dd680c..751d52207 100644 --- a/shared/js/errors.js +++ b/shared/js/errors.js @@ -4,7 +4,7 @@ Error.showInternals = false; function isValidFrame(frame) { const showInternals = Error.showInternals || alt.isDebug; - return !(!showInternals && frame.getFileName().startsWith("internal:")); + return !(!showInternals && frame.getFileName()?.startsWith("internal:")); } /**