mirror of
https://github.com/LBRYFoundation/Watch-on-LBRY.git
synced 2025-08-23 17:47:26 +00:00
🍣 Bug fixes and small changes
This commit is contained in:
parent
63a251c0ae
commit
066c400cce
2 changed files with 4 additions and 9 deletions
|
@ -46,11 +46,6 @@ export function createDialogManager() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
interface DialogElement extends HTMLDivElement {
|
|
||||||
open: boolean
|
|
||||||
showModal(): void
|
|
||||||
}
|
|
||||||
|
|
||||||
export function Dialogs(params: { manager: ReturnType<typeof createDialogManager> }) {
|
export function Dialogs(params: { manager: ReturnType<typeof createDialogManager> }) {
|
||||||
const alerts = params.manager.useAlerts()
|
const alerts = params.manager.useAlerts()
|
||||||
let currentAlert = Object.values(alerts)[0]
|
let currentAlert = Object.values(alerts)[0]
|
||||||
|
@ -60,7 +55,7 @@ export function Dialogs(params: { manager: ReturnType<typeof createDialogManager
|
||||||
|
|
||||||
let cancelled = false
|
let cancelled = false
|
||||||
|
|
||||||
const dialog = useRef(null as any as DialogElement)
|
const dialog = useRef(null as any as HTMLDialogElement)
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (!dialog.current) return
|
if (!dialog.current) return
|
||||||
if (!dialog.current.open) dialog.current.showModal()
|
if (!dialog.current.open) dialog.current.showModal()
|
||||||
|
|
|
@ -77,7 +77,7 @@ export const targetPlatformSettings = {
|
||||||
'madiator.com': targetPlatform({
|
'madiator.com': targetPlatform({
|
||||||
domainPrefix: 'https://madiator.com/',
|
domainPrefix: 'https://madiator.com/',
|
||||||
displayName: 'Madiator.com',
|
displayName: 'Madiator.com',
|
||||||
theme: '#075656',
|
theme: 'linear-gradient(130deg, #499375, #43889d)',
|
||||||
button: {
|
button: {
|
||||||
text: 'Watch on',
|
text: 'Watch on',
|
||||||
icon: chrome.runtime.getURL('assets/icons/lbry/madiator-logo.svg'),
|
icon: chrome.runtime.getURL('assets/icons/lbry/madiator-logo.svg'),
|
||||||
|
@ -90,7 +90,7 @@ export const targetPlatformSettings = {
|
||||||
odysee: targetPlatform({
|
odysee: targetPlatform({
|
||||||
domainPrefix: 'https://odysee.com/',
|
domainPrefix: 'https://odysee.com/',
|
||||||
displayName: 'Odysee',
|
displayName: 'Odysee',
|
||||||
theme: '#1e013b',
|
theme: 'linear-gradient(130deg, #c63d59, #f77937)',
|
||||||
button: {
|
button: {
|
||||||
text: 'Watch on Odysee',
|
text: 'Watch on Odysee',
|
||||||
icon: chrome.runtime.getURL('assets/icons/lbry/odysee-logo.svg')
|
icon: chrome.runtime.getURL('assets/icons/lbry/odysee-logo.svg')
|
||||||
|
@ -99,7 +99,7 @@ export const targetPlatformSettings = {
|
||||||
app: targetPlatform({
|
app: targetPlatform({
|
||||||
domainPrefix: 'lbry://',
|
domainPrefix: 'lbry://',
|
||||||
displayName: 'LBRY App',
|
displayName: 'LBRY App',
|
||||||
theme: '#075656',
|
theme: 'linear-gradient(130deg, #499375, #43889d)',
|
||||||
button: {
|
button: {
|
||||||
text: 'Watch on LBRY',
|
text: 'Watch on LBRY',
|
||||||
icon: chrome.runtime.getURL('assets/icons/lbry/lbry-logo.svg')
|
icon: chrome.runtime.getURL('assets/icons/lbry/lbry-logo.svg')
|
||||||
|
|
Loading…
Add table
Reference in a new issue