mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2026-04-20 22:05:35 -04:00
address eslint errors
This commit is contained in:
@@ -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
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user