mirror of
https://github.com/4gray/iptvnator.git
synced 2026-10-16 06:06:18 -08:00
fix(portals): the session replace helper warns through the redacting logger
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
1 parent
2a7fdd7c89
commit
1248c2cca0
1 file changed
+4
-1
@@ -3,8 +3,11 @@ import type {
|
||||
PlayerContentInfo,
|
||||
} from '@iptvnator/shared/interfaces';
|
||||
import { isLiveExternalPlayerSession } from './external-playback-button-state';
|
||||
import { createLogger } from './logger';
|
||||
import type { PortalExternalPlayback } from './portal-external-playback';
|
||||
|
||||
const logger = createLogger('ExternalPlayback');
|
||||
|
||||
/**
|
||||
* Closes the external session a page owns before it launches a replacement
|
||||
* (with instance reuse off a second detached player would start beside it).
|
||||
@@ -19,7 +22,7 @@ export async function replaceOwnedExternalSession(
|
||||
>,
|
||||
owns: (info: PlayerContentInfo) => boolean,
|
||||
warn: (message: string, error: unknown) => void = (message, error) =>
|
||||
console.warn(message, error)
|
||||
logger.warn(message, error)
|
||||
): Promise<boolean> {
|
||||
const session: ExternalPlayerSession | null =
|
||||
externalPlayback.activeSession();
|
||||
|
||||
Reference in new issue
Block a user