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
ee1272b520
commit
2c036794ff
@ -22,10 +22,7 @@ export default async function AuthButton() {
|
||||
|
||||
|
||||
// ...
|
||||
|
||||
console.log(heads)
|
||||
const url = heads.get('next-url')
|
||||
if(url == null) throw new Error('No URL found')
|
||||
const url = window.location.href;
|
||||
const urlObj = new URL(url);
|
||||
const currentPage = urlObj.pathname;
|
||||
if(user){
|
||||
|
Loading…
x
Reference in New Issue
Block a user