testing this shit
This commit is contained in:
@@ -14,7 +14,11 @@ export default function AboutButton() {
|
||||
label="ABOUT ME"
|
||||
color="#2563eb"
|
||||
icon={InfoIcon}
|
||||
onClick={() => window.open('http://' + window.location.hostname + ':80', '_blank')}
|
||||
onClick={() => {
|
||||
if (typeof window !== 'undefined') {
|
||||
window.open('http://' + window.location.hostname + ':80', '_blank');
|
||||
}
|
||||
}}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -27,7 +27,7 @@ export default function HeaderButtons() {
|
||||
/>
|
||||
</a>
|
||||
{/* If your server for about me is running on a different port, change the port number here */}
|
||||
<a href={window.location.origin.replace('3000', '80')} target="_self" rel="noopener noreferrer">
|
||||
<a href={typeof window !== 'undefined' ? window.location.origin.replace('3000', '80') : '#'} target="_self" rel="noopener noreferrer">
|
||||
<img
|
||||
src="https://img.shields.io/badge/About%20Me-000000?style=for-the-badge&logo=account&logoColor=white&labelColor=2563eb"
|
||||
alt="About Me"
|
||||
|
||||
Reference in New Issue
Block a user