Skip to content

Commit 7683ee8

Browse files
committed
fix: ignore error display unless enabled via nativescript.config
1 parent 8fd54b5 commit 7683ee8

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

NativeScript/runtime/NativeScriptException.mm

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -427,11 +427,15 @@
427427

428428
void NativeScriptException::ShowErrorModal(const std::string& title, const std::string& message,
429429
const std::string& stackTrace) {
430-
// Only show modal in debug mode
431430
if (!RuntimeConfig.IsDebug) {
432431
return;
433432
}
434433

434+
// only show when enabled via nativescript.config
435+
if (Runtime::showErrorDisplay() == false) {
436+
return;
437+
}
438+
435439
// For boot-level crashes, try a simpler approach first
436440
UIApplication* app = [UIApplication sharedApplication];
437441

0 commit comments

Comments
 (0)