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

Commit

Permalink
revert: fix(Angular): add workaround for Safari / Webdriver problem
Browse files Browse the repository at this point in the history
This reverts commit 6b915ad.
Karma has this workaround built in since 3.1.0:
karma-runner/karma@873e4f9
  • Loading branch information
Narretz committed Nov 26, 2018
1 parent f9e651d commit eb49f6b
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/Angular.js
Original file line number Diff line number Diff line change
Expand Up @@ -1696,13 +1696,8 @@ function angularInit(element, bootstrap) {
});
if (appElement) {
if (!isAutoBootstrapAllowed) {
try {
window.console.error('AngularJS: disabling automatic bootstrap. <script> protocol indicates ' +
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 eb49f6b

Please sign in to comment.