Skip to content
This repository was archived by the owner on Dec 11, 2019. It is now read-only.

Commit 639013e

Browse files
committed
Use proper protocol string for comparisons
Already covered by a lot of automated tests that are failing only in 0.18.x branch. Example navigationBar tests lockIcon Shows insecure URL icon. Auditors: @bsclifton Fix #10093
1 parent 2e602b4 commit 639013e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/renderer/components/navigation/urlBar.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,7 @@ class UrlBar extends React.Component {
438438
const displayEntry = tabState.getVisibleEntry(state, activeTabId) || Immutable.Map()
439439
const displayURL = tabState.getVisibleVirtualURL(state, activeTabId) || ''
440440
const hostValue = displayEntry.get('host', '')
441-
const protocol = displayEntry.get('protocol', '')
441+
const protocol = (displayEntry.get('protocol', '')).split(':')[0]
442442

443443
const baseUrl = getBaseUrl(location)
444444
const urlbar = activeFrame.getIn(['navbar', 'urlbar']) || Immutable.Map()

0 commit comments

Comments
 (0)