mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Fix error dialog history
This commit is contained in:
parent
2af0b91dad
commit
3567b9783d
4 changed files with 41 additions and 14 deletions
|
@ -1,3 +1,4 @@
|
|||
import { appRouter } from '../appRouter';
|
||||
import browser from '../../scripts/browser';
|
||||
import dialog from '../dialog/dialog';
|
||||
import globalize from '../../scripts/globalize';
|
||||
|
@ -6,7 +7,7 @@ function replaceAll(str, find, replace) {
|
|||
return str.split(find).join(replace);
|
||||
}
|
||||
|
||||
function nativeConfirm(options) {
|
||||
async function nativeConfirm(options) {
|
||||
if (typeof options === 'string') {
|
||||
options = {
|
||||
title: '',
|
||||
|
@ -15,6 +16,7 @@ function nativeConfirm(options) {
|
|||
}
|
||||
|
||||
const text = replaceAll(options.text || '', '<br/>', '\n');
|
||||
await appRouter.ready();
|
||||
const result = window.confirm(text);
|
||||
|
||||
if (result) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue