aboutsummaryrefslogtreecommitdiffstats
path: root/youtube/static/js/hotkeys.js
diff options
context:
space:
mode:
authorJesús <heckyel@hyperbola.info>2020-12-15 12:30:46 -0500
committerJesús <heckyel@hyperbola.info>2020-12-15 12:30:46 -0500
commitf9461a2e79cd0be50937139eb9d0ad1a55e0578f (patch)
tree5b73b4e68349da83df4dd664728efe17ddbe048d /youtube/static/js/hotkeys.js
parenta6f21bbc6596a2e20e657dcecac0c64144c497d6 (diff)
downloadyt-local-f9461a2e79cd0be50937139eb9d0ad1a55e0578f.tar.lz
yt-local-f9461a2e79cd0be50937139eb9d0ad1a55e0578f.tar.xz
yt-local-f9461a2e79cd0be50937139eb9d0ad1a55e0578f.zip
Migration general theme: fix query video tag
Diffstat (limited to 'youtube/static/js/hotkeys.js')
-rw-r--r--youtube/static/js/hotkeys.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/youtube/static/js/hotkeys.js b/youtube/static/js/hotkeys.js
index e199f3b..8c08c11 100644
--- a/youtube/static/js/hotkeys.js
+++ b/youtube/static/js/hotkeys.js
@@ -2,7 +2,7 @@ function onKeyDown(e) {
if (['INPUT', 'TEXTAREA'].includes(document.activeElement.tagName)) return false;
// console.log(e);
- let v = Q("video");
+ let v = QId("js-video-player");
let c = e.key.toLowerCase();
if (e.ctrlKey) return;
else if (c == "k") {
@@ -37,7 +37,7 @@ function onKeyDown(e) {
else tt.mode = "showing";
}
else if (c == "t") {
- let ts = Math.floor(Q("video").currentTime);
+ let ts = Math.floor(QId("js-video-player").currentTime);
copyTextToClipboard(`https://youtu.be/${data.video_id}?t=${ts}`);
}
}