remove failing badDefault
This commit is contained in:
parent
8b447b9291
commit
6252ce466c
2 changed files with 8 additions and 2 deletions
|
@ -152,6 +152,13 @@ void SystemPreferences::RegisterDefaults(mate::Arguments* args) {
|
|||
} else {
|
||||
@try {
|
||||
NSDictionary* dict = DictionaryValueToNSDictionary(value);
|
||||
// for (id key in dict) {
|
||||
// id value = [dict objectForKey:key];
|
||||
// if (value == nil) {
|
||||
// printf("HELLO\n");
|
||||
// args->ThrowError("Invalid userDefault data provided");
|
||||
// }
|
||||
// }
|
||||
[[NSUserDefaults standardUserDefaults] registerDefaults:dict];
|
||||
} @catch (NSException* exception) {
|
||||
args->ThrowError("Invalid userDefault data provided");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue