mirror of
https://github.com/D4M13N-D3V/neroshitron.git
synced 2025-03-14 10:05:04 +00:00
Update NavigationBar.tsx
This commit is contained in:
parent
057c20cd21
commit
de0a5a8e73
@ -28,7 +28,7 @@ export default async function AuthButton() {
|
|||||||
const url = heads.get('x-url')
|
const url = heads.get('x-url')
|
||||||
if(url == null) throw new Error('No URL found')
|
if(url == null) throw new Error('No URL found')
|
||||||
const urlObj = new URL(url);
|
const urlObj = new URL(url);
|
||||||
|
const currentPage = urlObj.pathname;
|
||||||
if(user){
|
if(user){
|
||||||
let email = user.email;
|
let email = user.email;
|
||||||
if(email != null){
|
if(email != null){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user