mirror of
https://github.com/iNavFlight/inav-configurator.git
synced 2025-07-13 11:29:53 +03:00
Convert to CommonJS Modules - Part 2
This commit is contained in:
parent
91f1699659
commit
38727c54a8
21 changed files with 729 additions and 694 deletions
|
@ -1,6 +1,6 @@
|
|||
'use strict';
|
||||
|
||||
// From Betaflight
|
||||
// Thanks to Betaflight :)
|
||||
|
||||
window.$ = window.jQuery = require('jquery');
|
||||
const { app } = require('@electron/remote');
|
||||
|
@ -47,7 +47,7 @@ i18n.init = function (callback) {
|
|||
}
|
||||
|
||||
i18n.parseInputFile = function (data) {
|
||||
// Remove the $n interpolate of Chrome $1, $2, ... -> {{1}}, {{2}}, ...
|
||||
// Remove the $n interpolate of Chrome $1, $2, ... -> {{1}}, {{2}}, ...
|
||||
const REGEXP_CHROME = /\$([1-9])/g;
|
||||
const dataChrome = data.replace(REGEXP_CHROME, '{{$1}}');
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue