diff --git a/src/components/alert.js b/src/components/alert.js
index 46d9ea4d6b..de3c7c4447 100644
--- a/src/components/alert.js
+++ b/src/components/alert.js
@@ -1,33 +1,33 @@
-import { appRouter } from "./router/appRouter";
-import browser from "../scripts/browser";
-import dialog from "./dialog/dialog";
-import globalize from "../scripts/globalize";
+import { appRouter } from './router/appRouter';
+import browser from '../scripts/browser';
+import dialog from './dialog/dialog';
+import globalize from '../scripts/globalize';
export default async function (text, title) {
// Modals seem to be blocked on Web OS and Tizen 2.x
const canUseNativeAlert = !!(
- !browser.web0s &&
- !(browser.tizenVersion && browser.tizenVersion < 3) &&
- browser.tv &&
- window.alert
+ !browser.web0s
+ && !(browser.tizenVersion && browser.tizenVersion < 3)
+ && browser.tv
+ && window.alert
);
- let options = typeof text === "string" ? { title, text } : text;
+ const options = typeof text === 'string' ? { title, text } : text;
await appRouter.ready();
if (canUseNativeAlert) {
- alert((options.text || "").replaceAll("
", "\n"));
+ alert((options.text || '').replaceAll('
', '\n'));
return Promise.resolve();
}
const items = [
{
- name: globalize.translate("ButtonGotIt"),
- id: "ok",
- type: "submit",
- },
+ name: globalize.translate('ButtonGotIt'),
+ id: 'ok',
+ type: 'submit'
+ }
];
options.buttons = items;