Skip to content

Commit

Permalink
Simplify type check
Browse files Browse the repository at this point in the history
  • Loading branch information
charlesg99 committed Apr 2, 2024
1 parent 1c6c6a0 commit e1666de
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion appIcons.js
Original file line number Diff line number Diff line change
Expand Up @@ -846,7 +846,7 @@ export const TaskbarAppIcon = GObject.registerClass({
// fixed issue #1676 by checking for button 0 or 1 to also handle touchscreen
// input, probably not the proper fix as i'm not aware button 0 should exist
// but from using this fix for months it seems to not create any issues
else if (typeof button === 'number' && (button == 0 || button == 1)) {
else if (button === 0 || button === 1) {

This comment has been minimized.

Copy link
@sladiri

sladiri Apr 2, 2024

sweet :)

let now = global.get_current_time()

doubleClick = now - this.lastClick < DOUBLE_CLICK_DELAY_MS
Expand Down
1 change: 0 additions & 1 deletion intellihide.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ const MIN_UPDATE_MS = 250;
const T1 = 'checkGrabTimeout';
const T2 = 'limitUpdateTimeout';
const T3 = 'postAnimateTimeout';
const T4 = 'panelBoxClipTimeout';

const SIDE_CONTROLS_ANIMATION_TIME = OverviewControls.SIDE_CONTROLS_ANIMATION_TIME / (OverviewControls.SIDE_CONTROLS_ANIMATION_TIME > 1 ? 1000 : 1);

Expand Down

0 comments on commit e1666de

Please sign in to comment.