Skip to content

Commit 8fa8a4d

Browse files
authored
Update index.html
1 parent 1f33a77 commit 8fa8a4d

1 file changed

Lines changed: 6 additions & 8 deletions

File tree

index.html

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,13 @@
66
<meta name="author" content="PkLavc" />
77
<meta name="google-site-verification" content="6gMtjXC8QaMe105oQFC7f7_0FKxgBr8R65-kOtoSSfE" />
88
<script>
9-
const host = window.location.hostname.toLowerCase();
9+
const { hostname, pathname, search, hash } = window.location;
10+
const host = hostname.toLowerCase();
1011

11-
if (host === "pklavc.github.io" || host === "www.pklavc.com") {
12-
window.location.replace(
13-
"https://pklavc.com" +
14-
window.location.pathname +
15-
window.location.search +
16-
window.location.hash
17-
);
12+
const redirectHosts = ["pklavc.github.io", "www.pklavc.com"];
13+
14+
if (redirectHosts.includes(host)) {
15+
window.location.replace("https://pklavc.com" + pathname + search + hash);
1816
}
1917
</script>
2018
<meta property="og:title" content="Patrick Araujo | Backend Software Engineer">

0 commit comments

Comments
 (0)