From 41c8c9768c99a3aba0401b41a398d021aab5a5d3 Mon Sep 17 00:00:00 2001 From: Liana Husikyan Date: Mon, 26 Oct 2020 17:49:37 +0100 Subject: [PATCH] removed logs and fixed bug in media panel --- apps/remix-ide/src/app/ui/landing-page/landing-page.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/apps/remix-ide/src/app/ui/landing-page/landing-page.js b/apps/remix-ide/src/app/ui/landing-page/landing-page.js index f6c6bff749..67a22a0515 100644 --- a/apps/remix-ide/src/app/ui/landing-page/landing-page.js +++ b/apps/remix-ide/src/app/ui/landing-page/landing-page.js @@ -164,7 +164,6 @@ export class LandingPage extends ViewPlugin { ` this.adjustMediaPanel() globalRegistry.get('themeModule').api.events.on('themeChanged', (theme) => { - console.log("theme is ", theme.quality) this.onThemeChanged(theme.quality) }) } @@ -177,6 +176,7 @@ export class LandingPage extends ViewPlugin { hideMediaPanel (e) { const mediaPanelsTitle = document.getElementById('remixIDEMediaPanelsTitle') const mediaPanels = document.getElementById('remixIDEMediaPanels') + if (!mediaPanelsTitle || !mediaPanels) return if (!mediaPanelsTitle.contains(e.target) && !mediaPanels.contains(e.target)) { this.mediumPanel.classList.remove('d-block') this.mediumPanel.classList.add('d-none') @@ -186,7 +186,6 @@ export class LandingPage extends ViewPlugin { } onThemeChanged (themeQuality) { - console.log("themes in listener is", themeQuality) let twitterFrame = yo`