1
0
Fork 0
mirror of https://github.com/iNavFlight/inav-configurator.git synced 2025-07-17 05:15:20 +03:00

Convert to CommonJS Modules

This commit is contained in:
Andi Kanzler 2024-02-26 11:58:56 -03:00
parent 7df8253099
commit 91f1699659
100 changed files with 9685 additions and 3735 deletions

View file

@ -2,10 +2,6 @@
'use strict';
function checkChromeRuntimeError() {
return false;
}
function constrain(input, min, max) {
if (input < min) {
@ -58,3 +54,5 @@ function scaleRangeInt(x, srcMin, srcMax, destMin, destMax) {
let b = srcMax - srcMin;
return Math.round((a / b) + destMin);
}
module.exports = { constrain, zeroPad, generateFilename, scaleRangeInt };