@lvce-editor/renderer-process 30.7.0 → 30.8.0
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.
|
@@ -4155,12 +4155,16 @@ const hide = (restoreFocus = true) => {
|
|
|
4155
4155
|
}
|
|
4156
4156
|
};
|
|
4157
4157
|
|
|
4158
|
-
const openUrl = url => {
|
|
4159
|
-
window.open(url);
|
|
4160
|
-
};
|
|
4161
4158
|
const redirectToUrl = url => {
|
|
4162
4159
|
window.location.assign(url);
|
|
4163
4160
|
};
|
|
4161
|
+
const openUrl = (url, useRedirect = false) => {
|
|
4162
|
+
if (useRedirect) {
|
|
4163
|
+
redirectToUrl(url);
|
|
4164
|
+
return;
|
|
4165
|
+
}
|
|
4166
|
+
window.open(url);
|
|
4167
|
+
};
|
|
4164
4168
|
|
|
4165
4169
|
const isElectronUserAgentSpecificMemoryError = error => {
|
|
4166
4170
|
if (platform !== Electron) {
|