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:")); } /**