Expose the method to JS and write a simple test.
This commit is contained in:
parent
0230567891
commit
587dd2fe51
2 changed files with 26 additions and 0 deletions
|
@ -54,6 +54,7 @@ void SystemPreferences::BuildPrototype(
|
|||
.SetMethod("unsubscribeNotification",
|
||||
&SystemPreferences::UnsubscribeNotification)
|
||||
.SetMethod("getUserDefault", &SystemPreferences::GetUserDefault)
|
||||
.SetMethod("getGlobalDefault", &SystemPreferences::GetGlobalDefault)
|
||||
#endif
|
||||
.SetMethod("isDarkMode", &SystemPreferences::IsDarkMode);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue