Trevixal API
    Preparing search index...

    Function loadPreferences

    • Read the saved preferences from key; storage can be unavailable, so this fails soft. The key is passed in rather than fixed here because two editors built from this package on the same origin should not overwrite each other's theme, see FullEditorOptions.namespace.

      store defaults to window.localStorage, and is resolved inside the try rather than as a parameter default so that reading it on a server: where there is no window to reach, still returns the defaults instead of throwing past the caller.

      Parameters

      Returns Preferences