Skip to content

Commit

Permalink
hack: disable debug colors
Browse files Browse the repository at this point in the history
  • Loading branch information
ThaUnknown committed Aug 18, 2024
1 parent fdec580 commit 4ab2d35
Show file tree
Hide file tree
Showing 11 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions common/modules/anilist.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import IPC from '@/modules/ipc.js'
import Debug from 'debug'

const debug = Debug('ui:anilist')
debug.useColors = false

const codes = {
400: 'Bad Request',
Expand Down
1 change: 1 addition & 0 deletions common/modules/animeresolver.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { chunks } from './util.js'
import Debug from 'debug'

const debug = Debug('ui:animeresolver')
debug.useColors = false

const postfix = {
1: 'st', 2: 'nd', 3: 'rd'
Expand Down
1 change: 1 addition & 0 deletions common/modules/extensions/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import { toast } from 'svelte-sonner'
import Debug from 'debug'

const debug = Debug('ui:extensions')
debug.useColors = false

/** @typedef {import('@thaunknown/ani-resourced/sources/types.d.ts').Options} Options */
/** @typedef {import('@thaunknown/ani-resourced/sources/types.d.ts').Result} Result */
Expand Down
1 change: 1 addition & 0 deletions common/modules/parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { fontRx } from './util.js'
import { SUPPORTS } from '@/modules/support.js'

const debug = Debug('torrent:parser')
debug.useColors = false

export default class Parser {
parsed = false
Expand Down
1 change: 1 addition & 0 deletions common/modules/rss.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import IPC from '@/modules/ipc.js'
import Debug from 'debug'

const debug = Debug('ui:rss')
debug.useColors = false

export const exclusions = ['DTS', 'TrueHD', '[EMBER]']
const isDev = location.hostname === 'localhost'
Expand Down
1 change: 1 addition & 0 deletions common/modules/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { toast } from 'svelte-sonner'
import Debug from 'debug'

const debug = Debug('ui:anilist')
debug.useColors = false

/** @type {{viewer: import('./al').Query<{Viewer: import('./al').Viewer}>, token: string} | null} */
export let alToken = JSON.parse(localStorage.getItem('ALviewer')) || null
Expand Down
1 change: 1 addition & 0 deletions common/modules/torrent.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import 'browser-event-target-emitter'
import Debug from 'debug'

const debug = Debug('ui:torrent')
debug.useColors = false

const torrentRx = /(^magnet:){1}|(^[A-F\d]{8,40}$){1}|(.*\.torrent$){1}/i

Expand Down
1 change: 1 addition & 0 deletions common/modules/webtorrent.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ const querystringStringify = obj => {
}

const debug = Debug('torrent:worker')
debug.useColors = false

const ANNOUNCE = [
atob('d3NzOi8vdHJhY2tlci5vcGVud2VidG9ycmVudC5jb20='),
Expand Down
1 change: 1 addition & 0 deletions common/views/Player/MediaHandler.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import Debug from 'debug'
const debug = Debug('ui:mediahandler')
debug.useColors = false
const episodeRx = /Episode (\d+) - (.*)/
Expand Down
1 change: 1 addition & 0 deletions common/views/TorrentSearch/TorrentMenu.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import Debug from 'debug'
const debug = Debug('ui:extensions')
debug.useColors = false
/** @typedef {import('@/modules/al.d.ts').Media} Media */
Expand Down
1 change: 1 addition & 0 deletions common/views/WatchTogether/WatchTogether.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
import Debug from 'debug'
const debug = Debug('ui:w2g')
debug.useColors = false
export const w2gEmitter = new EventTarget()
Expand Down

0 comments on commit 4ab2d35

Please sign in to comment.