From: Cheng Zhao Date: Wed, 27 Aug 2014 12:49:57 +0000 (+0800) Subject: Don't use pure number as host name. X-Git-Tag: v0.16.0~10^2~7 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=fe96a9de335e01fd089b8c0e8a2a59560f3672b5;p=electron.git Don't use pure number as host name. Numbers would be treated as IP addresses. --- diff --git a/atom/browser/lib/chrome-extension.coffee b/atom/browser/lib/chrome-extension.coffee index 736bbdd0..3a62da57 100644 --- a/atom/browser/lib/chrome-extension.coffee +++ b/atom/browser/lib/chrome-extension.coffee @@ -8,7 +8,7 @@ hostPathMap = {} hostPathMapNextKey = 0 getHostForPath = (path) -> - key = "#{++hostPathMapNextKey}" + key = "extension-#{hostPathMapNextKey}" hostPathMap[key] = path key