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.99.6 lib/hyperloop/on_client.rb
hyperloop-config-0.99.5 lib/hyperloop/on_client.rb
hyperloop-config-0.99.4 lib/hyperloop/on_client.rb
hyperloop-config-0.99.3 lib/hyperloop/on_client.rb
hyperloop-config-0.99.2 lib/hyperloop/on_client.rb
hyperloop-config-0.99.1 lib/hyperloop/on_client.rb
hyperloop-config-0.99.0 lib/hyperloop/on_client.rb
hyperloop-config-1.0.0.lap28 lib/hyperloop/on_client.rb
hyperloop-config-1.0.0.lap27 lib/hyperloop/on_client.rb
hyperloop-config-1.0.0.lap26 lib/hyperloop/on_client.rb
hyperloop-config-1.0.0.lap25 lib/hyperloop/on_client.rb
hyperloop-config-1.0.0.lap24 lib/hyperloop/on_client.rb
hyperloop-config-1.0.0.lap23 lib/hyperloop/on_client.rb
hyperloop-config-1.0.0.lap22 lib/hyperloop/on_client.rb
hyperloop-config-1.0.0.lap21 lib/hyperloop/on_client.rb
hyperloop-config-0.9.11 lib/hyperloop/on_client.rb
hyperloop-config-0.9.10 lib/hyperloop/on_client.rb
hyperloop-config-0.9.9 lib/hyperloop/on_client.rb
hyperloop-config-0.9.8 lib/hyperloop/on_client.rb
hyperloop-config-0.9.7 lib/hyperloop/on_client.rb