You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When attempting to process Excel files containing images using the transformExcelToLucky() function from the Node server, the operation gets stuck and does not complete. This issue seems to be specific to Excel files that include images as part of their content.
node version - 14.19.1
luckyexcel - 1.0.1
seems to be the issue in generateRandomIndex() -> var userAgent = window.navigator.userAgent.replace(/[^a-zA-Z0-9]/g, "").split("");
window object will not be available in case of server call
function generateRandomIndex(prefix) {
if (prefix == null) {
prefix = "Sheet";
}
// window object will not be available in case of server call
var userAgent = window.navigator.userAgent.replace(/[^a-zA-Z0-9]/g, "").split("");
var mid = "";
for (var i = 0; i < 5; i++) {
mid += userAgent[Math.round(Math.random() * (userAgent.length - 1))];
}
var time = new Date().getTime();
return prefix + "_" + mid + "_" + time;
}
The text was updated successfully, but these errors were encountered:
When attempting to process Excel files containing images using the transformExcelToLucky() function from the Node server, the operation gets stuck and does not complete. This issue seems to be specific to Excel files that include images as part of their content.
node version - 14.19.1
luckyexcel - 1.0.1
seems to be the issue in generateRandomIndex() -> var userAgent = window.navigator.userAgent.replace(/[^a-zA-Z0-9]/g, "").split("");
window object will not be available in case of server call
The text was updated successfully, but these errors were encountered: