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


findSystemFlashPath = ->
  # Download/install from: https://get.adobe.com/flashplayer/otherversions/
  switch platform
    when 'darwin'
      try
        systemFlashPath = '/Library/Internet Plug-Ins/PepperFlashPlayer/PepperFlashPlayer.plugin'


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