mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2026-04-22 22:27:39 -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:
@@ -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('', '');
|
||||
|
||||
Reference in New Issue
Block a user