From 575766b8e8fab0e2e26d36b6ed302cffd0507c85 Mon Sep 17 00:00:00 2001 From: Bill Thornton Date: Sun, 6 Jun 2021 14:17:01 -0400 Subject: [PATCH] Merge pull request #2678 from grafixeyehero/window.global Access Loading globally (cherry picked from commit c8fcb9e664a5ccacee638f81f38c657c1e9c208e) Signed-off-by: Joshua M. Boniface --- .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 400c528a48..2093f534fc 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -92,6 +92,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 466173952c..4aec4e0a04 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;