mirror of
https://github.com/aykhans/slash-e.git
synced 2025-04-17 20:55:28 +00:00
chore: remove debug code
This commit is contained in:
parent
f34b33c1a2
commit
194571e132
@ -36,7 +36,8 @@ const ShortcutSpace = () => {
|
||||
navigateTo("/404");
|
||||
return null;
|
||||
}
|
||||
console.log("currentUser", currentUser);
|
||||
|
||||
// If shortcut is not found, prompt user to create it.
|
||||
return (
|
||||
<>
|
||||
<div className="w-full h-[100svh] flex flex-col justify-center items-center p-4">
|
||||
@ -59,12 +60,14 @@ const ShortcutSpace = () => {
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
// If shortcut is a URL, redirect to it directly.
|
||||
if (isURL(shortcut.link)) {
|
||||
window.document.title = "Redirecting...";
|
||||
window.location.href = shortcut.link;
|
||||
return null;
|
||||
}
|
||||
|
||||
// Otherwise, render the shortcut link as plain text.
|
||||
return <div>{shortcut.link}</div>;
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user