Fixed compiling of deployment targets. Thanks to dybal for the catch.

master
AnotherCommander 2020-08-15 22:11:29 +02:00
parent f5cbf6109d
commit 740134fd95
1 changed files with 1 additions and 1 deletions

View File

@ -265,13 +265,13 @@ static void ReportJSError(JSContext *context, const char *message, JSErrorReport
JS_SetCStringsAreUTF8();
NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];
#ifndef NDEBUG
/* Set stack trace preferences from preferences. These will be overriden
by the debug OXP script if installed, but being able to enable traces
without setting up the debug console could be useful for debugging
users' problems.
*/
NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];
[self setDumpStackForErrors:[defaults boolForKey:@"dump-stack-for-errors"]];
[self setDumpStackForWarnings:[defaults boolForKey:@"dump-stack-for-warnings"]];
#endif