updated idb store, probably leaks ram and doesnt clean up, minor fixes

This commit is contained in:
ThaUnknown 2020-10-31 17:50:16 +01:00
parent 3f9b8feffd
commit 87bf74b315
3 changed files with 5 additions and 2220 deletions

File diff suppressed because one or more lines are too long

View file

@ -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 " ":

View file

@ -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);
}