lib/mobileesp.rb
def detect_palm_os
      # Most devices nowadays report as 'Palm', but some older ones reported as Blazer or Xiino.
      # Make sure it's not WebOS first
      !detect_palm_web_os && (!@user_agent.index(DEVICE_PALM).nil? || !@user_agent.index(ENGINE_BLAZER).nil? || !@user_agent.index(ENGINE_XIINO).nil?)
    end
# Detects if the current browser is on a PalmOS device.
Detects if the current browser is on a PalmOS device.
Detects if the current browser is on a PalmOS device .
def detect_palm_os
      !detect_palm_web_os && (!@user_agent.index(DEVICE_PALM).nil? || !@user_agent.index(ENGINE_BLAZER).nil? || !@user_agent.index(ENGINE_XIINO).nil?)
    end
def detect_palm_os ! detect_palm_web_os && ( ! @user_agent . index ( DEVICE_PALM ) . nil? || ! @user_agent . index ( ENGINE_BLAZER ) . nil? || ! @user_agent . index ( ENGINE_XIINO ) . nil? ) end
Detects if the current browser is on a PalmOS device.
Detects if the current browser is on a PalmOS device .
# Most devices nowadays report as 'Palm', but some older ones reported as Blazer or Xiino. # Make sure it's not WebOS first