jquery-postmessage icon indicating copy to clipboard operation
jquery-postmessage copied to clipboard

Opera sniff be gone!

Open ryanseddon opened this issue 13 years ago • 1 comments

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

ryanseddon avatar Sep 12 '11 01:09 ryanseddon

Ben, this old sniff actually breaks oldspice.com for Opera users now. To reproduce:

  1. Open top page, http://www.oldspice.com/
  2. Click to move to "Products"
  3. select a product
  4. 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).

miketaylr avatar Sep 12 '11 14:09 miketaylr