wait for DOM to remove attribute
use window.jQuery instead of $
This commit is contained in:
parent
8b020593b7
commit
8ea981519e
|
@ -108,10 +108,11 @@ JS;
|
|||
}
|
||||
|
||||
$javascript = <<<JS
|
||||
(function() {
|
||||
var body = document.getElementsByTagName('body')[0];
|
||||
body.removeAttribute('data-jserrors');
|
||||
})();
|
||||
if ('undefined' !== typeof window.jQuery) {
|
||||
$(document).ready(function() {
|
||||
window.jQuery('body').removeAttribute('data-jserrors');
|
||||
});
|
||||
}
|
||||
JS;
|
||||
|
||||
$this->getSession()->executeScript($javascript);
|
||||
|
|
Loading…
Reference in New Issue