isomorfeus-react 16.9.3 → 16.9.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/isomorfeus/react_view_helper.rb +2 -3
- data/lib/react/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 130e5c42bf50ff422d94f269e43b5339eae2364cb44d5bcfb1a288ac6e19350e
|
4
|
+
data.tar.gz: fd5573839b4c89edceda8ebe29bf8e202e53bc6cafc59b8b5d1d66b19420d321
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ee586d6c9b6e3119f2426a392b2b0f84d7a68634e03b663ddf10f5399d0213494d051d9c6cdf8d6b4fdb964f3cc709455b410e70d289afa8639d209c55baa4ce
|
7
|
+
data.tar.gz: d3aa97bd524eb1d71c27a42c750cd1edda3b7dd5b23b4817c2f3116561bacb12d3c4224d2f239619c2296a544e26c2ffafa57b0e5475af25e2e621d43413c734
|
@@ -21,12 +21,11 @@ module Isomorfeus
|
|
21
21
|
ws_scheme = props[:location_scheme] == 'https:' ? 'wss:' : 'ws:'
|
22
22
|
location_host = props[:location_host] ? props[:location_host] : 'localhost'
|
23
23
|
api_ws_path = Isomorfeus.respond_to?(:api_websocket_path) ? Isomorfeus.api_websocket_path : ''
|
24
|
+
transport_ws_url = ws_scheme + location_host + api_ws_path
|
24
25
|
javascript << <<~JAVASCRIPT
|
25
|
-
var location_host = '#{location_host}';
|
26
|
-
var ws_scheme = '#{ws_scheme}';
|
27
26
|
var api_ws_path = '#{api_ws_path}';
|
28
27
|
if (typeof global.Opal.Isomorfeus.Transport !== 'undefined' && api_ws_path !== '') {
|
29
|
-
global.Opal.Isomorfeus.TopLevel["$transport_ws_url="](
|
28
|
+
global.Opal.Isomorfeus.TopLevel["$transport_ws_url="]("#{transport_ws_url}");
|
30
29
|
global.Opal.send(global.Opal.Isomorfeus.Transport.$promise_connect(), 'then', [], ($$1 = function(){
|
31
30
|
try {
|
32
31
|
global.Opal.Isomorfeus.TopLevel.$render_component_to_string('#{component_name}', #{Oj.dump(props, mode: :strict)});
|
data/lib/react/version.rb
CHANGED