mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
Don't use pure number as host name.
Numbers would be treated as IP addresses.
This commit is contained in:
@@ -8,7 +8,7 @@ hostPathMap = {}
|
||||
hostPathMapNextKey = 0
|
||||
|
||||
getHostForPath = (path) ->
|
||||
key = "#{++hostPathMapNextKey}"
|
||||
key = "extension-#{hostPathMapNextKey}"
|
||||
hostPathMap[key] = path
|
||||
key
|
||||
|
||||
|
||||
Reference in New Issue
Block a user