diff options
| author | bozo.kopic <bozo@kopic.xyz> | 2022-01-03 00:58:17 +0100 |
|---|---|---|
| committer | bozo.kopic <bozo@kopic.xyz> | 2022-01-03 00:58:17 +0100 |
| commit | ae33b2c75ec0e03fd1d80241a4c4b29acadb517c (patch) | |
| tree | fa86a159bafb6ea5c1605cd66a67f8be5a24ba3e /src_js/common.js | |
| parent | 1a73bd946b8636dbcbb2970c8f8e919b888074ab (diff) | |
calculate native implementation
Diffstat (limited to 'src_js/common.js')
| -rw-r--r-- | src_js/common.js | 5 |
1 files changed, 3 insertions, 2 deletions
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 }; } |
