avoid use of bleeding edge function

only supported in Firefox & Chrome >= 120 & node >= 19.9.0 & 18.17.0
This commit is contained in:
El RIDO 2024-01-04 23:23:47 +01:00
parent a80bd4e4ea
commit cc0b6e387a
4 changed files with 7 additions and 10 deletions

View file

@ -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('', '');