Temp: log tokenRaw type and value in Webmentions component
Some checks failed
Deploy / deploy (push) Has been cancelled
Some checks failed
Deploy / deploy (push) Has been cancelled
This commit is contained in:
parent
07f677899a
commit
9ae9e4cf12
1 changed files with 1 additions and 0 deletions
|
|
@ -8,6 +8,7 @@ declare global {
|
||||||
}
|
}
|
||||||
const tokenRaw = (globalThis as unknown as { __WEBMENTION_TOKEN__?: string }).__WEBMENTION_TOKEN__;
|
const tokenRaw = (globalThis as unknown as { __WEBMENTION_TOKEN__?: string }).__WEBMENTION_TOKEN__;
|
||||||
const WEBMENTION_TOKEN = typeof tokenRaw === 'string' ? tokenRaw : '';
|
const WEBMENTION_TOKEN = typeof tokenRaw === 'string' ? tokenRaw : '';
|
||||||
|
console.log(`[Webmentions] tokenRaw type=${typeof tokenRaw} len=${WEBMENTION_TOKEN.length} raw="${String(tokenRaw).slice(0,4)}..."`);
|
||||||
|
|
||||||
interface WMAuthor {
|
interface WMAuthor {
|
||||||
name?: string;
|
name?: string;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue