mirror of
https://github.com/atom/atom.git
synced 2026-01-22 13:28:01 -05:00
Return false when resource path does not match resources path
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user