jpillora / xdomain

A pure JavaScript CORS alternative
https://jpillora.com/xdomain/
3.12k stars 269 forks source link

Timeout on iframe creates an alertbox that cannot be avoided #154

Open Fietsje opened 9 years ago

Fietsje commented 9 years ago

When there is a timeout on the iframe that is created, an alert box pops up stating that there is a timeout (which is correct). However there is no way to override that behavior. It`s also the only alert box in xdomain.js.

jpillora commented 9 years ago

its not documented, but you should be able to:

xdomain.warn = function() {
  //use a warning different function which doesnt alert
};