Skip to content

Commit

Permalink
added check for secondaryMonitor before accessing members (#20)
Browse files Browse the repository at this point in the history
[gnome 42] Modified to return if SecondaryMonitorDisplay when it is not found. Removed second check (covered by function call).
  • Loading branch information
ja-beb committed Mar 17, 2022
1 parent 67e7e0c commit 802432c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/modScaleThumbnails.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ var Mod = class extends mod.Base {
workspaceThumbnail.MAX_THUMBNAIL_SCALE = 0.1

// Thumbnails on second monitor
if (!SecondaryMonitorDisplay) return;
this.bkp_SecondaryMonitorDisplay_getThumbnailsHeight = SecondaryMonitorDisplay.prototype._getThumbnailsHeight
SecondaryMonitorDisplay.prototype._getThumbnailsHeight = function(box) {
if (!this._thumbnails.visible)
Expand Down

0 comments on commit 802432c

Please sign in to comment.