Sha256: 432186b2d1f0ed762e125830212619d81a5fc06422ec57387cd761f5fb6103d7

Contents?: true

Size: 127 Bytes

Versions: 27

Compression:

Stored size: 127 Bytes

Contents

module Hyperloop
  def self.on_client?
    !(`typeof Opal.global.document === 'undefined'`) if RUBY_ENGINE == 'opal'
  end
end

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
hyperloop-config-0.9.6 lib/hyperloop/on_client.rb
hyperloop-config-0.9.5 lib/hyperloop/on_client.rb
hyperloop-config-0.9.4 lib/hyperloop/on_client.rb
hyperloop-config-0.9.3 lib/hyperloop/on_client.rb
hyperloop-config-0.9.2 lib/hyperloop/on_client.rb
hyperloop-config-0.9.1 lib/hyperloop/on_client.rb
hyperloop-config-0.9.0 lib/hyperloop/on_client.rb