Channel links: "Unsafe JavaScript attempt to initiate navigation for frame with URL"

Hello! i’m finishing my twitch tv project but i still have one issue that i can’t solve. When you click in any channel, the twitch page doesn’t load and i don’t understand why.

The console error is: “Unsafe JavaScript attempt to initiate navigation for frame with URL ‘’ from frame with URL ‘’. The frame attempting navigation is sandboxed, and is therefore disallowed from navigating its ancestors.”

This is my pen

I appreciate some help! thanks!

Hey, you made a typo on line 98 of your JS. It should be target="_blank" instead of _blanck.

BTW: Nice, clean design!

you are right, I corrected to target="blank" but it still doesn’t loads the twitch page :confused: some suggestion?

thank you for the compliment!

How do you mean doesn’t load? It does open a new tab for me.

yeah, opens a new tab but don’t loads the twitch page content, it stays on load event forever :watch:. That’s the problem

this is what i see. Is it only in my device?

It is codepen ‘bug’:

Solution: replace pen in your codepen address with debug (and you can also remove ?editors=0010):

Big thank you! In mobile devices seems to work fine without using your url

Thanks to @BenGitter and @jenovs for helping me!

1 Like