Skip to content

Commit

Permalink
fix: add guards bc WebkitGtk doesn't support input[type=number]
Browse files Browse the repository at this point in the history
  • Loading branch information
friday committed May 12, 2024
1 parent add5563 commit 394dde9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions preferences-src/src/components/pages/Preferences.vue
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,8 @@ export default {
this.autostart_enabled = false;
} else if (value && name === "autostart_enabled") {
this.daemonless = false;
} else if (name === "max_recent_apps") {
value = parseInt(value, 10) || 0 // WebkitGtk doesn't support input[type=number] for some strange reason
} else if (name === 'base_width' && (value < 540 || value > 2000)) {
return
}
Expand Down

0 comments on commit 394dde9

Please sign in to comment.