node tests: Test upload.feature_check directly.

This commit is contained in:
Steve Howell
2021-03-05 16:27:53 +00:00
committed by Steve Howell
parent 779f56d411
commit f6edaaab96
2 changed files with 14 additions and 1 deletions

View File

@@ -17,7 +17,7 @@ export function make_upload_absolute(uri) {
// Show the upload button only if the browser supports it.
export function feature_check(upload_button) {
if (window.XMLHttpRequest && new XMLHttpRequest().upload) {
if (window.XMLHttpRequest && new window.XMLHttpRequest().upload) {
upload_button.removeClass("notdisplayed");
}
}