From aed4d21cc0fb5703ff2cd1838d7dbb0e437e00ec Mon Sep 17 00:00:00 2001 From: Michael Carroll Date: Thu, 2 Nov 2023 00:29:49 +1000 Subject: [PATCH] remove print, cleanup blur on destroy --- blur.js | 2 +- carousel.js | 2 +- extension.js | 5 +++++ 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/blur.js b/blur.js index fcf090b4..e063be6e 100644 --- a/blur.js +++ b/blur.js @@ -33,7 +33,7 @@ var promptActive = false; // default GNOME method of testing this relies on st function log(msg) { if (debug) // set 'debug' above to false to keep the noise down in journal - print("BingWallpaper extension/Blur: " + msg); + console.log("BingWallpaper extension/Blur: " + msg); } // we patch UnlockDialog._updateBackgroundEffects() diff --git a/carousel.js b/carousel.js index 3685ea7b..e0683f19 100644 --- a/carousel.js +++ b/carousel.js @@ -224,6 +224,6 @@ export default class Carousel { log(msg) { if (this.settings.get_boolean('debug-logging')) - print("BingWallpaper extension: " + msg); // disable to keep the noise down in journal + console.log("BingWallpaper extension: " + msg); // disable to keep the noise down in journal } }; \ No newline at end of file diff --git a/extension.js b/extension.js index 9164ffe5..a8292971 100644 --- a/extension.js +++ b/extension.js @@ -210,6 +210,11 @@ class BingWallpaperIndicator extends Button { } } + destroy() { + blur._disable(); // disable blur (blur.js) override and cleanup + blur = null; + } + // create Soup session _initSoup() { this.httpSession = new Soup.Session();