Chrome 43 throws and exception on this line https://github.com/webmin/webmin/issues/210

This commit is contained in:
Jamie Cameron
2015-05-21 17:30:07 -07:00
parent 5cd13920a8
commit deed37b482

View File

@@ -257,7 +257,11 @@ else{ /* end IE initialization, try to deal with real browsers now ;-) */
/**
* <p>Emulate IE's onreadystatechange attribute</p>
*/
XMLDocument.prototype.onreadystatechange = null;
try {
XMLDocument.prototype.onreadystatechange = null;
} catch(err) {
// May fail on Chrome 43+
}
/**
* <p>Emulates IE's readyState property, which always gives an integer from 0 to 4:</p>
* <ul><li>1 == LOADING,</li>