-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
fix: compatibility with old browsers #4544
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Codecov Report
@@ Coverage Diff @@
## master #4544 +/- ##
==========================================
- Coverage 92.24% 92.06% -0.18%
==========================================
Files 16 16
Lines 1637 1638 +1
Branches 616 616
==========================================
- Hits 1510 1508 -2
- Misses 116 119 +3
Partials 11 11
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
client-src/utils/log.js
Outdated
@@ -27,8 +27,8 @@ const logEnabledFeatures = (features) => { | |||
let logString = "Server started:"; | |||
|
|||
// Server started: Hot Module Replacement enabled, Live Reloading enabled, Overlay disabled. | |||
for (const [key, value] of Object.entries(features)) { | |||
logString += ` ${key} ${value ? "enabled" : "disabled"},`; | |||
for (const key of Object.keys(features)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Still new syntax https://caniuse.com/mdn-javascript_statements_for_of, let rewrite on simple loop
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed.
af39b70
to
24e25cc
Compare
For Bugs and Features; did you add new tests?
Already present.
Motivation / Use-Case
Fix #4543
Object.keys
is compatible with IE9,10, and 11 - https://caniuse.com/?search=object.keysBreaking Changes
No
Additional Info
No