Guard against no atom globals

Esse commit está contido em:
Kevin Sawicki
2014-11-07 13:11:00 -08:00
commit e53c38f09d
+3
Ver Arquivo
@@ -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}")