-- Leo's gemini proxy

-- Connecting to git.thebackupbox.net:1965...

-- Connected

-- Sending request

-- Meta line: 20 text/gemini

repo: janusweb
action: commit
revision:
path_from:
revision_from: 9ddcdb598897a6324e3acf10a7bb3390f11d3746:
path_to:
revision_to:

git.thebackupbox.net

janusweb

git://git.thebackupbox.net/janusweb

commit 9ddcdb598897a6324e3acf10a7bb3390f11d3746
Author: James Baicoianu <james_github@baicoianu.com>
Date:   Sat Oct 21 03:03:02 2017 -0700

    Restart sound if already playing

diff --git a/scripts/room.js b/scripts/room.js

index d1160abf3dc6ad3acc976a0ec580904eaf0b97ce..

index ..d68252762b5284830d683cf347ce3868a8c56e8d 100644

--- a/scripts/room.js
+++ b/scripts/room.js
@@ -1066,6 +1066,10 @@ elation.require([
             this.sounds[name][k] = properties[k];
           }
         }
+        if (this.sounds[name].playing) {
+          this.sounds[name].stop();
+          this.sounds[name].seek(0);
+        }
         this.sounds[name].play();
       }
     }

-----END OF PAGE-----

-- Response ended

-- Page fetched on Sun Jun 2 19:04:08 2024