Guard against no atom globals
Esse commit está contido em:
@@ -27,6 +27,9 @@ class Package
|
||||
@stylesheetsDir: 'stylesheets'
|
||||
|
||||
@isBundledPackagePath: (packagePath, resourcePath, devMode) ->
|
||||
resourcePath ?= atom?.packages.resourcePath
|
||||
devMode ?= atom?.packages.devMode
|
||||
|
||||
if devMode
|
||||
return false unless resourcePath.startsWith("#{process.resourcesPath}#{path.sep}")
|
||||
|
||||
|
||||
Referência em uma Nova Issue
Bloquear um usuário