Fix usage of new URL API
Fix usage of new URL API

Due to the deprecation of the old `url`-API provided by NodeJS we
replaced `url.resolve` with `url.URL.resolve`, which doesn't exist.

This patch fixes the local filesystem upload of CodiMD by using the new
API correctly. Creating an URL object and using its href.

Some more background:
https://nodejs.org/api/url.html#url_url_href
https://nodejs.org/api/url.html#url_url_resolve_from_to

Fixes https://github.com/hackmdio/codimd/issues/1102

Signed-off-by: Sheogorath <1c2647ce2ee8a4ec8e5c8b1b245ca38f94844bab@shivering-isles.com>

jackycute/HackMD,hackmdio/hackmd,Yukaii/hackmd,hackmdio/hackmd,jackycute/HackMD,jackycute/HackMD,Yukaii/hackmd,hackmdio/hackmd,Yukaii/hackmd