mirror of
https://github.com/electron/electron.git
synced 2026-05-02 03:00:22 -04:00
remove failing badDefault
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user