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