enable post.html in dev
This commit is contained in:
@@ -16,7 +16,13 @@ const agent = new BskyAgent({
|
|||||||
service: 'https://public.api.bsky.app',
|
service: 'https://public.api.bsky.app',
|
||||||
})
|
})
|
||||||
|
|
||||||
const uri = `at://${window.location.pathname.slice('/embed/'.length)}`
|
let uri
|
||||||
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
|
||||||
|
if (import.meta.env.DEV) {
|
||||||
|
uri = new URLSearchParams(window.location.search).get('uri')
|
||||||
|
} else {
|
||||||
|
uri = `at://${window.location.pathname.slice('/embed/'.length)}`
|
||||||
|
}
|
||||||
|
|
||||||
console.log(uri)
|
console.log(uri)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user