js: Use templates for non-translatable strings
This reverts commit 9d941f8202
and replaces all additional
instances of .format() that have been added since.
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2160>
This commit is contained in:

committed by
Marge Bot

parent
29dfde5a4a
commit
a1dd1b25d8
@ -181,7 +181,7 @@ var Button = GObject.registerClass({
|
||||
// measures are in logical pixels, so make sure to consider the scale
|
||||
// factor when computing max-height
|
||||
let maxHeight = Math.round((workArea.height - verticalMargins) / scaleFactor);
|
||||
this.menu.actor.style = 'max-height: %spx;'.format(maxHeight);
|
||||
this.menu.actor.style = `max-height: ${maxHeight}px;`;
|
||||
}
|
||||
|
||||
_onDestroy() {
|
||||
|
Reference in New Issue
Block a user