mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-07 20:08:53 +00:00
[ticket/15769] Fix eslint complaints
PHPBB3-15769
This commit is contained in:
parent
310b451cd3
commit
8509cf2a04
1 changed files with 1 additions and 2 deletions
|
@ -161,8 +161,7 @@
|
|||
*/
|
||||
onCrop(event) {
|
||||
const data = phpbb.avatars.$data.data();
|
||||
let width = event.detail.width;
|
||||
let height = event.detail.height;
|
||||
let { width, height } = event.detail;
|
||||
|
||||
if (width < data.minWidth || height < data.minHeight) {
|
||||
width = Math.max(data.minWidth, Math.min(data.maxWidth, width));
|
||||
|
|
Loading…
Add table
Reference in a new issue