Skip to content

Commit

Permalink
Merge pull request #2678 from grafixeyehero/window.global
Browse files Browse the repository at this point in the history
Access Loading globally 

(cherry picked from commit c8fcb9e)
Signed-off-by: Joshua M. Boniface <[email protected]>
  • Loading branch information
thornbill authored and joshuaboniface committed Jun 13, 2021
1 parent f2cbfbb commit 575766b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
1 change: 1 addition & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ module.exports = {
'LibraryMenu': 'writable',
'LinkParser': 'writable',
'LiveTvHelpers': 'writable',
'Loading': 'writable',
'MetadataEditor': 'writable',
'PlaylistViewer': 'writable',
'UserParentalControlPage': 'writable',
Expand Down
10 changes: 7 additions & 3 deletions src/components/loading/loading.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,11 @@ export function hide() {
}
}

export default {
show: show,
hide: hide
const loading = {
show,
hide
};

window.Loading = loading;

export default loading;

0 comments on commit 575766b

Please sign in to comment.