@lvce-editor/renderer-process 24.5.0 → 24.7.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.
|
@@ -3686,8 +3686,12 @@ const hide = (restoreFocus = true) => {
|
|
|
3686
3686
|
}
|
|
3687
3687
|
};
|
|
3688
3688
|
|
|
3689
|
-
const openUrl = url => {
|
|
3690
|
-
|
|
3689
|
+
const openUrl = (url, useRedirect = false) => {
|
|
3690
|
+
if (useRedirect) {
|
|
3691
|
+
window.location.href = url;
|
|
3692
|
+
} else {
|
|
3693
|
+
window.open(url);
|
|
3694
|
+
}
|
|
3691
3695
|
};
|
|
3692
3696
|
|
|
3693
3697
|
const isElectronUserAgentSpecificMemoryError = error => {
|
|
@@ -3937,7 +3941,7 @@ const querySelector = selector => {
|
|
|
3937
3941
|
if (selector.startsWith('#')) {
|
|
3938
3942
|
return querySelectorByCss(selector);
|
|
3939
3943
|
}
|
|
3940
|
-
if (selector.startsWith('[data') || selector.startsWith('[title') || selector.startsWith('[name') || selector.startsWith('[aria-label')) {
|
|
3944
|
+
if (selector.startsWith('[data') || selector.startsWith('[title') || selector.startsWith('[name') || selector.startsWith('[aria-label') || selector.startsWith('[role')) {
|
|
3941
3945
|
return querySelectorByCss(selector);
|
|
3942
3946
|
}
|
|
3943
3947
|
if (isElement(selector)) {
|