mirror of
https://github.com/PeWu/topola-viewer.git
synced 2026-03-17 04:53:45 +00:00
Switched WikiTree API address to api.wikitree.com
This commit is contained in:
@@ -78,8 +78,8 @@ async function wikiTreeGet(request: WikiTreeRequest, handleCors: boolean) {
|
|||||||
requestData.append(key, request[key]);
|
requestData.append(key, request[key]);
|
||||||
}
|
}
|
||||||
const apiUrl = handleCors
|
const apiUrl = handleCors
|
||||||
? 'https://cors-anywhere.herokuapp.com/https://apps.wikitree.com/api.php'
|
? 'https://cors-anywhere.herokuapp.com/https://api.wikitree.com/api.php'
|
||||||
: 'https://apps.wikitree.com/api.php';
|
: 'https://api.wikitree.com/api.php';
|
||||||
const response = await window.fetch(apiUrl, {
|
const response = await window.fetch(apiUrl, {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
body: requestData,
|
body: requestData,
|
||||||
|
|||||||
Reference in New Issue
Block a user