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:
@@ -37,7 +37,7 @@ function buildEmailDomWithShortUrl() {
|
||||
'</ul></div></nav>' +
|
||||
'<input id="burnafterreadingoption" type="checkbox">' +
|
||||
'<div id="pastelink">Your document is ' +
|
||||
`<a id="pasteurl" href="'https://short.example/xYz'">'https://short.example/xYz'</a> ` +
|
||||
'<a id="pasteurl" href="https://short.example/xYz">https://short.example/xYz</a> ' +
|
||||
'<span id="copyhint">(Hit <kbd>Ctrl</kbd>+<kbd>c</kbd> to copy)</span>' +
|
||||
'</div>'
|
||||
);
|
||||
@@ -72,7 +72,7 @@ function stubWinOpen($element) {
|
||||
|
||||
return {
|
||||
getUrl: () => openedUrl,
|
||||
restore: () => { try { win.open = origOpen; } catch (e) {} },
|
||||
restore: () => { try { win.open = origOpen; } catch (e) { /* suppress exception in restore */ } },
|
||||
win
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user