You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
By doing window.self !== window.top we can detect if we're inside an iframe. Just like we're doing for electron we could act accordingly and make the router behave out of the box. Ref choojs/choo#344
The text was updated successfully, but these errors were encountered:
And then we can get the src tag from inside the iframe using document.referrer ✨ - it allows us to strip that part from each url and then booom, we're good (:
By doing
window.self !== window.top
we can detect if we're inside an iframe. Just like we're doing forelectron
we could act accordingly and make the router behave out of the box. Ref choojs/choo#344The text was updated successfully, but these errors were encountered: