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

Commit fb649c1

Browse files
committed
Revert "fix(Angular): add workaround for Safari / Webdriver problem"
This reverts commit 6b915ad. Karma has this workaround built in since 3.1.0: karma-runner/karma@873e4f9
1 parent a43b358 commit fb649c1

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/Angular.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1696,13 +1696,8 @@ function angularInit(element, bootstrap) {
16961696
});
16971697
if (appElement) {
16981698
if (!isAutoBootstrapAllowed) {
1699-
try {
1700-
window.console.error('AngularJS: disabling automatic bootstrap. <script> protocol indicates ' +
1699+
window.console.error('AngularJS: disabling automatic bootstrap. <script> protocol indicates ' +
17011700
'an extension, document.location.href does not match.');
1702-
} catch (e) {
1703-
// Support: Safari 11 w/ Webdriver
1704-
// The console.error will throw and make the test fail
1705-
}
17061701
return;
17071702
}
17081703
config.strictDi = getNgAttribute(appElement, 'strict-di') !== null;

0 commit comments

Comments
 (0)