diff --git a/src/modules/crypto/index.ts b/src/modules/crypto/index.ts index 7953d9c..21f9785 100644 --- a/src/modules/crypto/index.ts +++ b/src/modules/crypto/index.ts @@ -70,22 +70,18 @@ export function resetProfileSettings() { async function apiRequest(method: 'GET' | 'POST', pathname: string, data: T) { const settings = await getExtensionSettingsAsync() - /* const urlResolverSettings = ytUrlResolversSettings[settings.urlResolver] - if (!urlResolverSettings.signRequest) throw new Error() */ - const url = new URL(ytUrlResolversSettings.madiatorFinder.href/* urlResolverSettings.href */) + const url = new URL(ytUrlResolversSettings.madiatorFinder.href) url.pathname = path.join(url.pathname, pathname) url.searchParams.set('data', JSON.stringify(data)) - if (true/* requiresSignature */) { - if (!settings.privateKey || !settings.publicKey) - throw new Error('There is no profile.') + if (!settings.privateKey || !settings.publicKey) + throw new Error('There is no profile.') - url.searchParams.set('keys', JSON.stringify({ - signature: await sign(url.searchParams.toString(), settings.privateKey!), - publicKey: settings.publicKey - })) - } + url.searchParams.set('keys', JSON.stringify({ + signature: await sign(url.searchParams.toString(), settings.privateKey!), + publicKey: settings.publicKey + })) const respond = await fetch(url.href, { method }) diff --git a/src/pages/popup/style.css b/src/pages/popup/style.css index f492c52..506dfa9 100644 --- a/src/pages/popup/style.css +++ b/src/pages/popup/style.css @@ -28,18 +28,12 @@ section { gap: .75em; } -section>label { +label { font-size: 1.75em; font-weight: bold; text-align: center; } -section>b { - display: block; - width: 100%; - text-align: left; -} - section>* { padding: 0 1rem; }