Skip to content

Commit

Permalink
fix: if (!subdomain && pathname) → redirectToSubdomain(pathname)
Browse files Browse the repository at this point in the history
  • Loading branch information
h.u.g.u.rp committed Oct 10, 2023
1 parent 4d89f9f commit 6e054c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export default class R4Radio extends HTMLElement {
await this.importStyles();
const { lib: { sdk } = {} } = await this.importComponents();
const { pathname, subdomain } = this.slugInfo;
if (pathname) {
if (!subdomain && pathname) {
this.redirectToSubdomain(pathname);
}
if (!this.channel) {
Expand Down

1 comment on commit 6e054c8

@vercel
Copy link

@vercel vercel bot commented on 6e054c8 Oct 10, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.