mirror of
https://github.com/kasmtech/KasmVNC.git
synced 2025-06-25 12:12:15 +02:00
Don't use arrow functions in legacy loader
The browsers that need the legacy code do not support such fancy modern things.
This commit is contained in:
parent
46f15667f7
commit
29db8997ec
@ -23,7 +23,7 @@ module.exports = {
|
|||||||
// setup for requirejs
|
// setup for requirejs
|
||||||
const ui_path = path.relative(base_out_path,
|
const ui_path = path.relative(base_out_path,
|
||||||
path.join(script_base_path, 'app', 'ui'));
|
path.join(script_base_path, 'app', 'ui'));
|
||||||
return writeFile(out_path, `requirejs(["${ui_path}"], (ui) => {});`)
|
return writeFile(out_path, `requirejs(["${ui_path}"], function (ui) {});`)
|
||||||
.then(() => {
|
.then(() => {
|
||||||
console.log(`Please place RequireJS in ${path.join(script_base_path, 'require.js')}`);
|
console.log(`Please place RequireJS in ${path.join(script_base_path, 'require.js')}`);
|
||||||
const require_path = path.relative(base_out_path,
|
const require_path = path.relative(base_out_path,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user