Commit ad8f9557 authored by Steven Bennetts's avatar Steven Bennetts Committed by Commit Bot

Fix connectionState test in cr_network_icon.js

connectionState is gauranteed to be defined in the mojo NetworkState
object.

Bug: 980659
Change-Id: I6d9022f2e3a6e5517b2748f920a694092a867da1
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1716101
Commit-Queue: Steven Bennetts <stevenjb@chromium.org>
Commit-Queue: Kyle Horimoto <khorimoto@chromium.org>
Auto-Submit: Steven Bennetts <stevenjb@chromium.org>
Reviewed-by: default avatarKyle Horimoto <khorimoto@chromium.org>
Cr-Commit-Position: refs/heads/master@{#680254}
parent 466a2c06
...@@ -88,8 +88,7 @@ Polymer({ ...@@ -88,8 +88,7 @@ Polymer({
} }
if (!this.isListItem && if (!this.isListItem &&
(!connectionState || connectionState == mojom.ConnectionStateType.kNotConnected) {
connectionState == mojom.ConnectionStateType.kNotConnected)) {
return prefix + 'not-connected'; return prefix + 'not-connected';
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment