remove failing badDefault

This commit is contained in:
Shelley Vohr 2017-12-12 13:39:38 -05:00
parent 8b447b9291
commit 6252ce466c
No known key found for this signature in database
GPG key ID: F13993A75599653C
2 changed files with 8 additions and 2 deletions

View file

@ -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");