lib/fusuma/plugin/appmatcher/gnome_extensions/appmatcher@iberianpig.dev/extension.js in fusuma-plugin-appmatcher-0.2.2 vs lib/fusuma/plugin/appmatcher/gnome_extensions/appmatcher@iberianpig.dev/extension.js in fusuma-plugin-appmatcher-0.2.3
- old
+ new
@@ -57,10 +57,10 @@
return JSON.stringify(wins);
}
ActiveWindow() {
const actor = global.get_window_actors().find(a=>a.meta_window.has_focus()===true)
- if(!actor) { return; }
+ if(!actor) { return '{}'; }
const w = actor.get_meta_window()
try {
const obj = { wm_class: w.get_wm_class(), pid: w.get_pid(), id: w.get_id(), title: w.get_title(), focus: w.has_focus()}
return JSON.stringify(obj);
} catch (e) {