mirror of
https://github.com/electron/electron.git
synced 2026-01-09 15:38:08 -05:00
fixing error in registerDefaults
This commit is contained in:
@@ -106,6 +106,14 @@ This is necessary for events such as `NSUserDefaultsDidChangeNotification`.
|
||||
|
||||
Same as `unsubscribeNotification`, but removes the subscriber from `NSNotificationCenter`.
|
||||
|
||||
### `systemPreferences.registerDefaults(defaults)` _macOS_
|
||||
|
||||
* `defaults` Object - a dictionary of (`key: value`) user defaults
|
||||
* `key` String
|
||||
* `value` Any
|
||||
|
||||
Add the specified defaults to your application's `NSUserDefaults`.
|
||||
|
||||
### `systemPreferences.getUserDefault(key, type)` _macOS_
|
||||
|
||||
* `key` String
|
||||
|
||||
Reference in New Issue
Block a user