mirror of
https://github.com/PeWu/topola-viewer.git
synced 2026-07-20 18:51:47 +00:00
Run prettier on all code
This commit is contained in:
@@ -221,12 +221,15 @@ async function getAllDescendants(key: string, handleCors: boolean) {
|
||||
|
||||
/**
|
||||
* Loads data from the WikiTree API for a given person key.
|
||||
*
|
||||
*
|
||||
* @param key The WikiTree profile ID to load.
|
||||
* @param authcode Optional authentication code.
|
||||
* @returns A unique list of WikiTree `Person` records.
|
||||
*/
|
||||
export async function loadData(key: string, authcode?: string): Promise<Person[]> {
|
||||
export async function loadData(
|
||||
key: string,
|
||||
authcode?: string,
|
||||
): Promise<Person[]> {
|
||||
// Work around CORS if not in apps.wikitree.com domain.
|
||||
const handleCors = window.location.hostname !== 'apps.wikitree.com';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user