From 85a8a6f46c3c84334c5c43c603d68fd7172a3dfa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Wed, 12 Jul 2023 21:32:56 +0200 Subject: [PATCH] lookingGlass: Reformat command header Part-of: --- js/ui/lookingGlass.js | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/js/ui/lookingGlass.js b/js/ui/lookingGlass.js index fd19e713e..ac618200c 100644 --- a/js/ui/lookingGlass.js +++ b/js/ui/lookingGlass.js @@ -26,15 +26,19 @@ const { ExtensionState } = ExtensionUtils; const CHEVRON = '>>> '; /* Imports...feel free to add here as needed */ -var commandHeader = 'const { Clutter, Gio, GLib, GObject, Meta, Shell, St } = imports.gi; ' + - 'const Main = imports.ui.main; ' + - /* Utility functions...we should probably be able to use these - * in the shell core code too. */ - 'const stage = global.stage; ' + - /* Special lookingGlass functions */ - 'const inspect = Main.lookingGlass.inspect.bind(Main.lookingGlass); ' + - 'const it = Main.lookingGlass.getIt(); ' + - 'const r = Main.lookingGlass.getResult.bind(Main.lookingGlass); '; +const commandHeader = ` + const {Clutter, Gio, GLib, GObject, Meta, Shell, St} = imports.gi; + const Main = imports.ui.main; + + /* Utility functions...we should probably be able to use these + * in the shell core code too. */ + const stage = global.stage; + + /* Special lookingGlass functions */ + const inspect = Main.lookingGlass.inspect.bind(Main.lookingGlass); + const it = Main.lookingGlass.getIt(); + const r = Main.lookingGlass.getResult.bind(Main.lookingGlass); + `; const HISTORY_KEY = 'looking-glass-history'; // Time between tabs for them to count as a double-tab event