Sha256: 3bd5c83ce5ba9b4ed88cb9a20a8d0086f913c1693ab6911c51459a613f58baaa

Contents?: true

Size: 128 Bytes

Versions: 12

Compression:

Stored size: 128 Bytes

Contents

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

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
hyperstack-config-1.0.alpha1.8 lib/hyperstack/on_client.rb
hyperstack-config-1.0.alpha1.7 lib/hyperstack/on_client.rb
hyperstack-config-1.0.alpha1.6 lib/hyperstack/on_client.rb
hyperstack-config-1.0.alpha1.5 lib/hyperstack/on_client.rb
hyperstack-config-1.0.alpha1.4 lib/hyperstack/on_client.rb
hyperstack-config-1.0.alpha1.3 lib/hyperstack/on_client.rb
hyperstack-config-1.0.alpha1.2 lib/hyperstack/on_client.rb
hyperstack-config-1.0.alpha1.1 lib/hyperstack/on_client.rb
hyperstack-config-1.0.0.pre.alpha1 lib/hyperstack/on_client.rb
hyperstack-config-1.0.alpha1 lib/hyperstack/on_client.rb
hyperstack-config-1.0.pre.alpha1 lib/hyperstack/on_client.rb
hyperstack-config-0.1 lib/hyperstack/on_client.rb