wip: fully migrate to tauri v2

This commit is contained in:
Ren Amamiya
2023-10-06 09:08:37 +07:00
parent 9627c40d75
commit c71bfb3f6d
21 changed files with 62 additions and 193 deletions

View File

@@ -30,7 +30,6 @@ export const NIP05 = memo(function NIP05({
const res = await fetch(verifyURL, {
method: 'GET',
timeout: 10,
headers: {
'Content-Type': 'application/json; charset=utf-8',
},
@@ -38,7 +37,7 @@ export const NIP05 = memo(function NIP05({
if (!res.ok) throw new Error(`Failed to fetch NIP-05 service: ${nip05}`);
const data = res.data as NIP05;
const data: NIP05 = await res.json();
if (data.names) {
if (data.names[localPath] !== pubkey) return false;
return true;