jquery-postmessage
jquery-postmessage copied to clipboard
Opera sniff be gone!
Removed the need for forking the code in Opera.
Opera <10 uses event.domain rather than event.origin and it also excluded the URL protocol.
So I pointed e.origin to e.domain and stripped source_origin string of the URL protocol if the browser supports e.domain.
Tested and confirmed working in Opera 9.64, 10.63 and 11.5
Ben, this old sniff actually breaks oldspice.com for Opera users now. To reproduce:
- Open top page, http://www.oldspice.com/
- Click to move to "Products"
- select a product
- select a product again
Expected: page opens Actual: Page opens, then redirected to top page with /#if_height=xxx (the number depends on the page).