Skip to content

Commit

Permalink
fix: deband reactive settings
Browse files Browse the repository at this point in the history
  • Loading branch information
ThaUnknown committed Dec 21, 2023
1 parent 6ef13b0 commit 12e1636
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 18 deletions.
7 changes: 4 additions & 3 deletions common/views/Player/Player.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import { settings } from '@/modules/settings.js'
import { playAnime } from '../RSSView.svelte'
import { client } from '@/modules/torrent.js'
import { createEventDispatcher, onMount } from 'svelte'
import { createEventDispatcher } from 'svelte'
import { alEntry } from '@/modules/anilist.js'
import Subtitles from '@/modules/subtitles.js'
import { toTS, fastPrettyBytes, videoRx } from '@/modules/util.js'
Expand Down Expand Up @@ -140,13 +140,14 @@
function loadDeband (load, video) {
if (!video) return
if (load) {
if (load && !deband) {
deband = new VideoDeband(video)
deband.canvas.classList.add('deband-canvas')
video.before(deband.canvas)
} else if (deband) {
} else if (!load && deband) {
deband.destroy()
deband.canvas.remove()
deband = null
}
}
$: loadDeband($settings.playerDeband, video)
Expand Down
2 changes: 1 addition & 1 deletion electron/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Miru",
"version": "4.5.7",
"version": "4.5.8",
"private": true,
"author": "ThaUnknown_ <[email protected]>",
"description": "Stream anime torrents, real-time with no waiting for downloads.",
Expand Down
14 changes: 0 additions & 14 deletions tsconfig.json

This file was deleted.

0 comments on commit 12e1636

Please sign in to comment.