Skip to content
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.

Commit

Permalink
fix(Angular): add workaround for Safari / Webdriver problem
Browse files Browse the repository at this point in the history
Closes #16645
  • Loading branch information
Narretz authored Jul 26, 2018
1 parent a42f8a0 commit 6b915ad
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/Angular.js
Original file line number Diff line number Diff line change
Expand Up @@ -1695,8 +1695,13 @@ function angularInit(element, bootstrap) {
});
if (appElement) {
if (!isAutoBootstrapAllowed) {
window.console.error('AngularJS: disabling automatic bootstrap. <script> protocol indicates ' +
try {
window.console.error('AngularJS: disabling automatic bootstrap. <script> protocol indicates ' +
'an extension, document.location.href does not match.');
} catch (e) {
// Support: Safari 11 w/ Webdriver
// The console.error will throw and make the test fail
}
return;
}
config.strictDi = getNgAttribute(appElement, 'strict-di') !== null;
Expand Down

0 comments on commit 6b915ad

Please sign in to comment.