mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
fix spacing, update variables
This commit is contained in:
parent
a5e4039db4
commit
b946259777
3 changed files with 53 additions and 53 deletions
|
@ -2,16 +2,16 @@ import browser from 'browser';
|
|||
import dialog from 'dialog';
|
||||
import globalize from 'globalize';
|
||||
|
||||
/*eslint-disable indent*/
|
||||
/* eslint-disable indent */
|
||||
|
||||
function replaceAll(originalString, strReplace, strWith) {
|
||||
var reg = new RegExp(strReplace, 'ig');
|
||||
const reg = new RegExp(strReplace, 'ig');
|
||||
return originalString.replace(reg, strWith);
|
||||
}
|
||||
|
||||
export default function (text, title) {
|
||||
|
||||
var options;
|
||||
let options;
|
||||
if (typeof text === 'string') {
|
||||
options = {
|
||||
title: title,
|
||||
|
@ -24,7 +24,7 @@ import globalize from 'globalize';
|
|||
if (browser.tv && window.alert) {
|
||||
alert(replaceAll(options.text || '', '<br/>', '\n'));
|
||||
} else {
|
||||
var items = [];
|
||||
const items = [];
|
||||
|
||||
items.push({
|
||||
name: globalize.translate('ButtonGotIt'),
|
||||
|
@ -46,4 +46,4 @@ import globalize from 'globalize';
|
|||
return Promise.resolve();
|
||||
}
|
||||
|
||||
/*eslint-enable indent*/
|
||||
/* eslint-enable indent */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue