For single-page applications (SPAs) you can open the Preferences Center using the openPreferencesCenter() method.
Example: