Pārlūkot izejas kodu

Fixes a mistake in the video switching shortcuts.

j8
fo 11 gadus atpakaļ
vecāks
revīzija
770f07c470
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1
    1
      keyboard_shortcut.js

+ 1
- 1
keyboard_shortcut.js Parādīt failu

@@ -38,7 +38,7 @@ var KeyboardShortcut = (function(my) {
38 38
                 shortcuts[keycode].function();
39 39
             } else if (keycode >= "0".charCodeAt(0) && keycode <= "9".charCodeAt(0)) {
40 40
                 var remoteVideos = $(".videocontainer:not(#mixedstream)"),
41
-                    videoWanted = (keycode - "0".charCodeAt(0) + 1) % 10;
41
+                    videoWanted = keycode - "0".charCodeAt(0) + 1;
42 42
                 if (remoteVideos.length > videoWanted) {
43 43
                     remoteVideos[videoWanted].click();
44 44
                 }

Notiek ielāde…
Atcelt
Saglabāt