Return false when resource path does not match resources path

This commit is contained in:
Kevin Sawicki
2014-10-21 13:17:31 -07:00
parent f33d7ba27f
commit 892cdae622

View File

@@ -28,7 +28,7 @@ class Package
@isBundledPackagePath: (packagePath) ->
if atom.packages.devMode
return atom.packages.resourcePath.startsWith("#{process.resourcesPath}#{path.sep}")
return false unless atom.packages.resourcePath.startsWith("#{process.resourcesPath}#{path.sep}")
@resourcePathWithTrailingSlash ?= "#{atom.packages.resourcePath}#{path.sep}"
packagePath?.startsWith(@resourcePathWithTrailingSlash)