Skip to content

Commit

Permalink
plugins/meson-templates: Use const where possible for JavaScript
Browse files Browse the repository at this point in the history
  • Loading branch information
justinrdonnelly committed Jan 14, 2025
1 parent 0d55acf commit e4c877d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/plugins/meson-templates/resources/src/main-gtk4.js.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export const {{PreFix}}Application = GObject.registerClass(
const show_about_action = new Gio.SimpleAction({name: 'about'});
show_about_action.connect('activate', action => {
{{if is_adwaita}}
let aboutParams = {
const aboutParams = {
application_name: '{{name}}',
application_icon: '{{appid}}',
developer_name: '{{author}}',
Expand All @@ -42,7 +42,7 @@ export const {{PreFix}}Application = GObject.registerClass(
const aboutDialog = new Adw.AboutDialog(aboutParams);
aboutDialog.present(this.active_window);
{{else}}
let aboutParams = {
const aboutParams = {
transient_for: this.active_window,
modal: true,
program_name: '{{name}}',
Expand Down

0 comments on commit e4c877d

Please sign in to comment.