mirror of
https://github.com/nolanlawson/pinafore
synced 2024-12-12 18:28:03 +01:00
fix: simplify redirect url logic (#1500)
This commit is contained in:
parent
ab9fc31405
commit
abfe232f0e
@ -8,8 +8,7 @@ import { updateCustomEmojiForInstance } from './emoji'
|
|||||||
import { database } from '../_database/database'
|
import { database } from '../_database/database'
|
||||||
import { DOMAIN_BLOCKS } from '../_static/blocks'
|
import { DOMAIN_BLOCKS } from '../_static/blocks'
|
||||||
|
|
||||||
const REDIRECT_URI = (typeof location !== 'undefined'
|
const REDIRECT_URI = process.browser && `${location.origin}/settings/instances/add`
|
||||||
? location.origin : 'https://pinafore.social') + '/settings/instances/add'
|
|
||||||
|
|
||||||
function createKnownError (message) {
|
function createKnownError (message) {
|
||||||
const err = new Error(message)
|
const err = new Error(message)
|
||||||
|
Loading…
Reference in New Issue
Block a user