mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-11 05:48:51 +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) {
|
onCrop(event) {
|
||||||
const data = phpbb.avatars.$data.data();
|
const data = phpbb.avatars.$data.data();
|
||||||
let width = event.detail.width;
|
let { width, height } = event.detail;
|
||||||
let height = event.detail.height;
|
|
||||||
|
|
||||||
if (width < data.minWidth || height < data.minHeight) {
|
if (width < data.minWidth || height < data.minHeight) {
|
||||||
width = Math.max(data.minWidth, Math.min(data.maxWidth, width));
|
width = Math.max(data.minWidth, Math.min(data.maxWidth, width));
|
||||||
|
|
Loading…
Add table
Reference in a new issue