mirror of
https://github.com/ThaUnknown/miru.git
synced 2026-04-19 04:12:03 +00:00
updated idb store, probably leaks ram and doesnt clean up, minor fixes
This commit is contained in:
parent
3f9b8feffd
commit
87bf74b315
3 changed files with 5 additions and 2220 deletions
File diff suppressed because one or more lines are too long
|
|
@ -436,6 +436,9 @@ function selectLang(lang) {
|
|||
// keybinds
|
||||
|
||||
document.onkeydown = (a) => {
|
||||
if (a.key == "F5") {
|
||||
a.preventDefault();
|
||||
}
|
||||
if (document.location.hash == "#player") {
|
||||
switch (a.key) {
|
||||
case " ":
|
||||
|
|
|
|||
|
|
@ -43,7 +43,7 @@ const torrentRx = /(magnet:)?([A-F\d]{8,40})?(.*\.torrent)?/i;
|
|||
window.addEventListener("paste", async (e) => {
|
||||
let content = await navigator.clipboard.readText(),
|
||||
regexParse = torrentRx.exec(content)
|
||||
if(regexParse[1] || regexParse[2] || regexParse[3]){
|
||||
if (regexParse[1] || regexParse[2] || regexParse[3]) {
|
||||
e.preventDefault();
|
||||
addTorrent(content);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue