wikitree-dynamic-tree
wikitree-dynamic-tree copied to clipboard
Use WikiTreeApi to call postToAPI
Because I was calling fetch() directly rather than using WikiTreeAPI.postToAPI(), I was not sending the token parameter which - it turns out - is necessary when the tree is hosted on wikitree.com to pass through login details when the user is logged in.
This PR makes SlippyTree use postToAPI so when the user is logged in they can view their private profiles.
It also halves the scrollwheel zoom factor based on feedback in comment at https://www.wikitree.com/g2g/1802306/announcing-a-new-tree-view-slippytree#1802760