jpillora / xdomain

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

Feature: Warning Hooks #104

Closed austinpray closed 9 years ago

austinpray commented 10 years ago

On ie7/8 it fires an alert error message. Can there be an option to set xdomain.alert to show these messages or not? I would rather handle the message myself.

jpillora commented 10 years ago

Currently XDomain just looks for console.warn and if it's not there, it uses alert, so as a workaround, you could just define a warn function window.console = { warn: function(){} }; in IE7/8

jpillora commented 10 years ago

Will leave this as a feature request for warning hooks

austinpray commented 10 years ago

Ah I see. I will go ahead and give that workaround a shot.

And yes warning hooks would be very useful so I can handle the errors in my standard "flash" dialogs.

austinpray commented 9 years ago

:beers: thanks!