mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2025-07-22 06:28:46 -04:00
avoid use of bleeding edge function
only supported in Firefox & Chrome >= 120 & node >= 19.9.0 & 18.17.0
This commit is contained in:
parent
a80bd4e4ea
commit
cc0b6e387a
4 changed files with 7 additions and 10 deletions
|
@ -56,13 +56,6 @@ describe('PasteStatus', function () {
|
|||
('#' + encodeURI(fragment)) : ''),
|
||||
clean = jsdom();
|
||||
|
||||
// not available in node before v19.9.0, v18.17.0
|
||||
if (typeof URL.canParse !== 'function') {
|
||||
URL.canParse = function(a) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
$('body').html('<div><div id="pastelink"></div></div>');
|
||||
$.PrivateBin.PasteStatus.init();
|
||||
$.PrivateBin.PasteStatus.createPasteNotification('', '');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue