Josh пре 4 година
родитељ
комит
8d1473b523
1 измењених фајлова са 2 додато и 4 уклоњено
  1. 2 4
      resources/views/app/video/call.blade.php

+ 2 - 4
resources/views/app/video/call.blade.php

@@ -201,7 +201,7 @@
                         return minutes + " min, " + seconds + " sec";
                     },
                     hangUp: function () {
-                        var sef = this;
+                        var self = this;
                         if (this.otSession) {
                             try {
                                 this.otSession.unpublish(this.publisher);
@@ -215,9 +215,7 @@
                             this.startTime = false;
                             this.videoActive = false;
                              if(self.publisher){
-                                 self.publisher.destroy();
-                             }else{
-                                alert("No publisher");
+                                self.publisher.destroy();
                              }
                              window.top.hideRHS();
                             // this.client = false;