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:
parent
7df8253099
commit
91f1699659
100 changed files with 9685 additions and 3735 deletions
|
@ -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 };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue