We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a42f8a0 commit 6b915adCopy full SHA for 6b915ad
src/Angular.js
@@ -1695,8 +1695,13 @@ function angularInit(element, bootstrap) {
1695
});
1696
if (appElement) {
1697
if (!isAutoBootstrapAllowed) {
1698
- window.console.error('AngularJS: disabling automatic bootstrap. <script> protocol indicates ' +
+ try {
1699
+ window.console.error('AngularJS: disabling automatic bootstrap. <script> protocol indicates ' +
1700
'an extension, document.location.href does not match.');
1701
+ } catch (e) {
1702
+ // Support: Safari 11 w/ Webdriver
1703
+ // The console.error will throw and make the test fail
1704
+ }
1705
return;
1706
}
1707
config.strictDi = getNgAttribute(appElement, 'strict-di') !== null;
0 commit comments