mirror of
https://github.com/Ylianst/MeshAgent
synced 2026-01-09 12:03:41 +00:00
1. Fixed bug with uncaught rejections in promise.js
2. Updated DHCP.info to support mac address entry 3. Updated clipboard to be able to force single line entry for addModule
This commit is contained in:
@@ -85,11 +85,11 @@ function nativeAddCompressedModule(name)
|
||||
}
|
||||
module.exports(ret);
|
||||
}
|
||||
function nativeAddModule(name)
|
||||
function nativeAddModule(name,single)
|
||||
{
|
||||
var value = getJSModule(name);
|
||||
var ret = "duk_peval_string_noresult(ctx, \"addModule('" + name + "', Buffer.from('" + Buffer.from(value).toString('base64') + "', 'base64').toString());\");";
|
||||
if (ret.length > 16300)
|
||||
if (ret.length > 16300 && (single==null || single==false))
|
||||
{
|
||||
// MS Visual Studio has a maxsize limitation
|
||||
var tmp = Buffer.from(value).toString('base64');
|
||||
|
||||
Reference in New Issue
Block a user