diff --git a/js/ui/screenshot.js b/js/ui/screenshot.js index f10c68f38..1c724f0ba 100644 --- a/js/ui/screenshot.js +++ b/js/ui/screenshot.js @@ -90,11 +90,11 @@ var ScreenshotService = class { return null; yield Gio.File.new_for_path( - GLib.build_filenamev([path, `${filename}.png`])); + GLib.build_filenamev([path, '%s.png'.format(filename)])); for (let idx = 1; ; idx++) { yield Gio.File.new_for_path( - GLib.build_filenamev([path, `${filename}-${idx}.png`])); + GLib.build_filenamev([path, '%s-%s.png'.format(filename, idx)])); } }