diff --git a/devtools/client/shared/developer-toolbar.js b/devtools/client/shared/developer-toolbar.js index 421609be2186..3c1500b8e541 100644 --- a/devtools/client/shared/developer-toolbar.js +++ b/devtools/client/shared/developer-toolbar.js @@ -534,7 +534,8 @@ DeveloperToolbar.prototype.show = function (focus) { if (!DeveloperToolbar.introShownThisSession) { let intro = require("gcli/ui/intro"); intro.maybeShowIntro(this.requisition.commandOutputManager, - this.requisition.conversionContext); + this.requisition.conversionContext, + this.outputPanel); DeveloperToolbar.introShownThisSession = true; } diff --git a/devtools/shared/gcli/source/lib/gcli/ui/intro.js b/devtools/shared/gcli/source/lib/gcli/ui/intro.js index 57b8d7890566..9abf51db649f 100644 --- a/devtools/shared/gcli/source/lib/gcli/ui/intro.js +++ b/devtools/shared/gcli/source/lib/gcli/ui/intro.js @@ -36,7 +36,8 @@ exports.items = [ /** * Called when the UI is ready to add a welcome message to the output */ -exports.maybeShowIntro = function(commandOutputManager, conversionContext) { +exports.maybeShowIntro = function (commandOutputManager, conversionContext, + outputPanel) { var hideIntro = conversionContext.system.settings.get('hideIntro'); if (hideIntro.value) { return; @@ -46,7 +47,7 @@ exports.maybeShowIntro = function(commandOutputManager, conversionContext) { output.type = 'view'; commandOutputManager.onOutput({ output: output }); - var viewData = this.createView(null, conversionContext, true); + var viewData = this.createView(null, conversionContext, true, outputPanel); output.complete({ isTypedData: true, type: 'view', data: viewData }); }; @@ -54,7 +55,8 @@ exports.maybeShowIntro = function(commandOutputManager, conversionContext) { /** * Called when the UI is ready to add a welcome message to the output */ -exports.createView = function(ignoreArgs, conversionContext, showHideButton) { +exports.createView = function (ignoreArgs, conversionContext, showHideButton, + outputPanel) { return view.createView({ html: '
\n' + @@ -81,7 +83,7 @@ exports.createView = function(ignoreArgs, conversionContext, showHideButton) { var settings = conversionContext.system.settings; var hideIntro = settings.get('hideIntro'); hideIntro.value = true; - this.mainDiv.style.display = 'none'; + outputPanel.remove(); } } });