angular-ui / angular-ui/ui-router

ui-router core v6.0.7 does not work with IE version 21H1

Offen
#3,832 1 Kommentar 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
stale
Vorherrschende Sprache
TypeScript
Sterne
13.4k
Forks
2.9k
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

This issue tracker is for Bug Reports and Feature Requests only.

Please direct requests for help to StackOverflow.
See http://bit.ly/UIR-SOF for details.

This is a (check one box):

- [x] Bug Report
- [ ] Feature Request
- [ ] General Query

My version of UI-Router is: 1.0.29

# Bug Report

#### Current Behavior:

Javascript crashes, testing via try-catch and window alert indicated problem with line 1209 in getSafeConsole. It is trying to check if console.table exists, but throwing an error because console does not exist with the dev tools closed.

#### Expected Behavior:

No errors occur

#### Link to Plunker or stackblitz that reproduces the issue:

I'm not sure how to show error without using a modified core.js, as the error only occurs in IE version 21H1 with the dev console closed. I fixed it locally by modifying the line in question to read:

`else if (console && (!console.table || !console.error)) {`

I do not know if that's the best solution.

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.