diff options
Diffstat (limited to 'server/sonar-web/src/main/js/apps/background-tasks/app.js')
-rw-r--r-- | server/sonar-web/src/main/js/apps/background-tasks/app.js | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/server/sonar-web/src/main/js/apps/background-tasks/app.js b/server/sonar-web/src/main/js/apps/background-tasks/app.js index d69c1b58091..268ca65e336 100644 --- a/server/sonar-web/src/main/js/apps/background-tasks/app.js +++ b/server/sonar-web/src/main/js/apps/background-tasks/app.js @@ -1,11 +1,7 @@ import React from 'react'; import Main from './main'; -export default { - start (options) { - window.requestMessages().done(() => { - let el = document.querySelector(options.el); - React.render(<Main options={options}/>, el); - }); - } -}; +window.sonarqube.appStarted.then(options => { + let el = document.querySelector(options.el); + React.render(<Main options={options}/>, el); +}); |