webrtc-rails 0.3.5 → 0.3.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 83913fb945b62320d8d09c983930387175fdda6c
4
- data.tar.gz: 23ad77bb9c1d76b682b12b44147cdbf00a725d29
3
+ metadata.gz: 46715b540b07d892527e2b7f6f247304cd8d2ff6
4
+ data.tar.gz: bfcbfc2836a9cfaf8800a0589f712a609acc6afd
5
5
  SHA512:
6
- metadata.gz: 185c56774b8c14c928ccb6a7981d8db676e75ec725cea5896d40a5e85e91a8b620847e0b4e8903fbb0452994e1b8b9f52558350d3c6d331d4c29751e01e6a8be
7
- data.tar.gz: 19c44ccc0c347e78292252f13703231ca6344d974169832823bc311ec6690fca358777a29c493b338c52340768d0a1e41e92123f974009923dfe83bfcb6ff6c7
6
+ metadata.gz: e19d70a685b8a37cc879cc80b9986db73c20a894bc4609333ef7be5eadd41bf803beebc516d17971381795b3e65e95cdfe7fc3a951f2302f8fdfc4e67aa4b2ad
7
+ data.tar.gz: 69c07d010291f9ed3639c598e91fb59fc843143c07ceae596c64f9ab684d34362102dca5e069af9d89da9b86b8a77d9e45b890904318d71e6567f5599cebfec5
@@ -24,6 +24,16 @@ class @WebRTC
24
24
  @_webSocketInitialize(url, userToken)
25
25
  @_addNetworkEventListener()
26
26
 
27
+ window.onbeforeunload = (e) =>
28
+ if @_hangedUp then null else '通話が切断されます。'
29
+
30
+ onunload = window.onunload
31
+ window.onunload = (e) =>
32
+ if onunload?
33
+ onunload()
34
+ unless @_hangedUp
35
+ @hangUp()
36
+
27
37
  call: (remoteUserIdentifier) ->
28
38
  if @_webRTCReconnecting && @_hangedUp
29
39
  @_webRTCReconnecting = false
File without changes
@@ -1,3 +1,3 @@
1
1
  module WebrtcRails
2
- VERSION = "0.3.5"
2
+ VERSION = "0.3.6"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: webrtc-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.5
4
+ version: 0.3.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Koji Murata
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-11-27 00:00:00.000000000 Z
11
+ date: 2015-12-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: em-websocket