1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

Migration of alert to ES6 module

This commit is contained in:
Cameron 2020-07-15 14:46:56 +01:00
parent 1200617639
commit 45df6ef764
12 changed files with 20 additions and 16 deletions

View file

@ -1,12 +1,15 @@
define(['browser', 'dialog', 'globalize'], function (browser, dialog, globalize) {
'use strict';
import browser from 'browser';
import dialog from 'dialog';
import globalize from 'globalize';
/*eslint-disable indent*/
function replaceAll(originalString, strReplace, strWith) {
var reg = new RegExp(strReplace, 'ig');
return originalString.replace(reg, strWith);
}
return function (text, title) {
export default function (text, title) {
var options;
if (typeof text === 'string') {
@ -41,5 +44,6 @@ define(['browser', 'dialog', 'globalize'], function (browser, dialog, globalize)
}
return Promise.resolve();
};
});
}
/*eslint-enable indent*/