From 78ff8abf258525a3cd7c03dd15ea703ae2a498d5 Mon Sep 17 00:00:00 2001 From: grafixeyehero <32230989+grafixeyehero@users.noreply.github.com> Date: Sat, 22 May 2021 14:38:20 +0300 Subject: [PATCH] add Loading globally --- .eslintrc.js | 1 + src/components/loading/loading.js | 10 +++++++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/.eslintrc.js b/.eslintrc.js index 10494c1bd9..b684293fa3 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -93,6 +93,7 @@ module.exports = { 'LibraryMenu': 'writable', 'LinkParser': 'writable', 'LiveTvHelpers': 'writable', + 'Loading': 'writable', 'MetadataEditor': 'writable', 'PlaylistViewer': 'writable', 'UserParentalControlPage': 'writable', diff --git a/src/components/loading/loading.js b/src/components/loading/loading.js index ed7c2db02b..66b4be421a 100644 --- a/src/components/loading/loading.js +++ b/src/components/loading/loading.js @@ -68,7 +68,11 @@ export function hide() { } } -export default { - show: show, - hide: hide +const loading = { + show, + hide }; + +window.Loading = loading; + +export default loading;