@lvce-editor/renderer-process 30.6.0 → 30.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/rendererProcessMain.js +15 -4
- package/package.json +1 -1
|
@@ -2449,7 +2449,14 @@ class IpcError extends VError$1 {
|
|
|
2449
2449
|
const cause = new Error(message);
|
|
2450
2450
|
// @ts-ignore
|
|
2451
2451
|
cause.code = code;
|
|
2452
|
-
|
|
2452
|
+
if (stack) {
|
|
2453
|
+
Object.defineProperty(cause, 'stack', {
|
|
2454
|
+
configurable: true,
|
|
2455
|
+
enumerable: false,
|
|
2456
|
+
value: stack,
|
|
2457
|
+
writable: true
|
|
2458
|
+
});
|
|
2459
|
+
}
|
|
2453
2460
|
super(cause, betterMessage);
|
|
2454
2461
|
} else {
|
|
2455
2462
|
super(betterMessage);
|
|
@@ -4148,12 +4155,16 @@ const hide = (restoreFocus = true) => {
|
|
|
4148
4155
|
}
|
|
4149
4156
|
};
|
|
4150
4157
|
|
|
4151
|
-
const openUrl = url => {
|
|
4152
|
-
window.open(url);
|
|
4153
|
-
};
|
|
4154
4158
|
const redirectToUrl = url => {
|
|
4155
4159
|
window.location.assign(url);
|
|
4156
4160
|
};
|
|
4161
|
+
const openUrl = (url, useRedirect = false) => {
|
|
4162
|
+
if (useRedirect) {
|
|
4163
|
+
redirectToUrl(url);
|
|
4164
|
+
return;
|
|
4165
|
+
}
|
|
4166
|
+
window.open(url);
|
|
4167
|
+
};
|
|
4157
4168
|
|
|
4158
4169
|
const isElectronUserAgentSpecificMemoryError = error => {
|
|
4159
4170
|
if (platform !== Electron) {
|