mirror of
https://github.com/zulip/zulip.git
synced 2025-11-18 04:43:58 +00:00
node tests: Test upload.feature_check directly.
This commit is contained in:
committed by
Steve Howell
parent
779f56d411
commit
f6edaaab96
@@ -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");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user