This repository has been archived by the owner on Jan 19, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 353
getOrigin issue within iFrames #136
Comments
This may not be the most elegant solution, but perhaps
|
Thanks for reporting, I have exactly the same issue inside my Storybook environment. |
I have the same issue :( |
zlyfenek
added a commit
to zlyfenek/react-image-lightbox
that referenced
this issue
May 22, 2019
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Reporting a Bug?
Yes.
react-image-lightbox/src/util.js
Line 35 in c9fcb5b
Requesting a Feature?
No.
I'm using this component inside a Chrome Extension (in an iframe), the document.referrer returns an empty string which throws a typeError
Would it be possible to add a check for empty strings?
Repro: http://jsfiddle.net/czm0fqyv/1/
Much appreciated!
The text was updated successfully, but these errors were encountered: