address eslint errors

This commit is contained in:
El RIDO
2025-10-06 23:47:08 +02:00
parent 51481656ba
commit f0560bcc27
8 changed files with 27 additions and 20 deletions
+2 -2
View File
@@ -59,7 +59,7 @@ function stubWinOpen($element) {
openedUrl = url;
return {};
};
} catch {
} catch (e) {
Object.defineProperty(win, 'open', {
value: function (url) {
openedUrl = url;
@@ -72,7 +72,7 @@ function stubWinOpen($element) {
return {
getUrl: () => openedUrl,
restore: () => { try { win.open = origOpen; } catch {} },
restore: () => { try { win.open = origOpen; } catch (e) {} },
win
};
}