From ae33b2c75ec0e03fd1d80241a4c4b29acadb517c Mon Sep 17 00:00:00 2001 From: "bozo.kopic" Date: Mon, 3 Jan 2022 00:58:17 +0100 Subject: calculate native implementation --- src_js/common.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src_js/common.js') diff --git a/src_js/common.js b/src_js/common.js index a5edfbf..7d4213c 100644 --- a/src_js/common.js +++ b/src_js/common.js @@ -20,8 +20,9 @@ export async function calculate() { r.set('calculating', true); try { const method = r.get('form', 'method'); + const native = r.get('form', 'native'); const params = createCalculateParams(); - const res = await fetch(`${calculateUrl}?method=${method}`, { + const res = await fetch(`${calculateUrl}?method=${method}&native=${native}`, { method: 'POST', headers: {'Content-Type': 'application/json'}, body: JSON.stringify(params) @@ -159,7 +160,7 @@ function createCalculateParams() { } items[name] = { width: item.width, - height: item.width, + height: item.height, can_rotate: item.can_rotate }; } -- cgit v1.2.3-70-g09d2