Skip to content

Commit 39df01c

Browse files
authored
Merge pull request #13 from zba/patch-1
fix not defined declarations
2 parents b194872 + ad0f1a8 commit 39df01c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

extension.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -129,9 +129,9 @@ const Controller = new Lang.Class({ // based on https://superuser.com/questions/
129129
log('no focus, go to:' + seen.get_wm_class());
130130
focusWindow(seen);
131131
} else if (settings.get_boolean('switch-back-when-focused')) {
132-
window_monitor = wm.get_monitor();
132+
const window_monitor = wm.get_monitor();
133133
const window_list = global.display.get_tab_list(0, null).filter(w=>w.get_monitor() === window_monitor && w !== wm);
134-
lastWindow = window_list[0];
134+
const lastWindow = window_list[0];
135135
if (lastWindow) {
136136
log('focus, go to:' + lastWindow.get_wm_class());
137137
focusWindow(lastWindow);

0 commit comments

Comments
 (0)