 
 findChromeFlashPath = ->
   # Refer to: https://helpx.adobe.com/flash-player/kb/flash-player-google-chrome.html
-  switch platform
+  switch PLATFORM
     when 'darwin'
       try
         # Usually there are 2 directories under the 'Versions' directory,

  true

getBuiltInFlashPath = ->
  builtInPath = join EXECROOT, innerPath if EXECROOT?
  builtInPath = join ROOT, innerPath if not validatePath builtInPath
  if validatePath builtInPath then builtInPath else null

reVerNum = /(\d+)\.(\d+)\.(\d+)\.(\d+)/


getFlashVersion = (path) ->
  return '' if not validatePath path
  switch PLATFORM
    when 'darwin'
      # The version info is in the Info.plist inside PepperFlashPlayer.plugin
      plistPath = join path, 'Contents', 'Info.plist'
