mirror of
https://github.com/hensm/fx_cast.git
synced 2026-06-11 01:59:58 +00:00
Replace StatusManager
This commit is contained in:
@@ -9,7 +9,7 @@ import { Message, Port } from "../messaging";
|
||||
import nativeMessaging from "./nativeMessaging";
|
||||
import options from "./options";
|
||||
|
||||
import { Receiver } from "../types";
|
||||
import { ReceiverDevice } from "../types";
|
||||
import { ReceiverSelectionCast
|
||||
, ReceiverSelectionStop } from "../background/receiverSelector/ReceiverSelector";
|
||||
|
||||
|
||||
@@ -21,6 +21,14 @@ export class Logger {
|
||||
console.info(formattedMessage);
|
||||
}
|
||||
}
|
||||
public warn(message: string, data?: any) {
|
||||
const formattedMessage = `${this.prefix} (Warning): ${message}`;
|
||||
if (data) {
|
||||
console.warn(formattedMessage, data);
|
||||
} else {
|
||||
console.warn(formattedMessage);
|
||||
}
|
||||
}
|
||||
public error(message: string, data?: any) {
|
||||
const formattedMessage = `${this.prefix} (Error): ${message}`;
|
||||
if (data) {
|
||||
|
||||
Reference in New Issue
Block a user