mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
Apply eslint/prettier fixes
This commit is contained in:
parent
8eeab22ecd
commit
102cb62960
@ -8,14 +8,14 @@ const log = logger('socketio');
|
||||
const updatePageTitle = (itemStatus: string) => {
|
||||
const baseString: string = document.title.replace('(1) ', '');
|
||||
document.title = itemStatus === 'in_progress' ? `(1) ${baseString}` : baseString;
|
||||
}
|
||||
};
|
||||
|
||||
const updatePageFavicon = (itemStatus: string)=> {
|
||||
const updatePageFavicon = (itemStatus: string) => {
|
||||
const InvokeLogoSVG: string = 'assets/images/invoke-favicon.svg';
|
||||
const InvokeAlertLogoSVG: string = 'assets/images/invoke-alert-favicon.svg';
|
||||
const faviconEl: HTMLLinkElement = document.getElementById('invoke-favicon') as HTMLLinkElement;
|
||||
faviconEl.href = itemStatus === 'in_progress' ? InvokeAlertLogoSVG : InvokeLogoSVG;
|
||||
}
|
||||
};
|
||||
|
||||
export const addSocketQueueItemStatusChangedEventListener = (startAppListening: AppStartListening) => {
|
||||
startAppListening({
|
||||
|
Loading…
Reference in New Issue
Block a user