mirror of
https://git.sr.ht/~cadence/bibliogram
synced 2025-12-14 10:35:07 +00:00
Create page for when graphql is blocked
This commit is contained in:
@@ -135,6 +135,10 @@ function loadPostOverlay(shortcode, stateChangeType) {
|
||||
return new Promise((resolve, reject) => {
|
||||
const fetcher = fetchShortcodeFragment(shortcode)
|
||||
fetcher.then(root => {
|
||||
if (root.redirectTo) {
|
||||
window.location.assign(root.redirectTo)
|
||||
return
|
||||
}
|
||||
shortcodeDataMap.set(shortcode, root)
|
||||
if (overlay.available) {
|
||||
const {title, html} = root
|
||||
|
||||
Reference in New Issue
Block a user