Skip to content

Commit

Permalink
remove print, cleanup blur on destroy
Browse files Browse the repository at this point in the history
  • Loading branch information
neffo committed Nov 1, 2023
1 parent bbae510 commit aed4d21
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion blur.js
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
2 changes: 1 addition & 1 deletion carousel.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
};
5 changes: 5 additions & 0 deletions extension.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit aed4d21

Please sign in to comment.