Merge pull request #4587 from thornbill/no-expected-error-logs
Remove error logs for checks expected to fail
This commit is contained in:
@@ -46,8 +46,8 @@ try {
|
||||
});
|
||||
|
||||
elem.scrollTo(opts);
|
||||
} catch (e) {
|
||||
console.error('error checking ScrollToOptions support');
|
||||
} catch {
|
||||
// no scroll to options support
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -19,8 +19,8 @@ if (HTMLElement.prototype.nativeFocus === undefined) {
|
||||
});
|
||||
|
||||
focusElem.focus(opts);
|
||||
} catch (e) {
|
||||
console.error('error checking preventScroll support');
|
||||
} catch {
|
||||
// no preventScroll supported
|
||||
}
|
||||
|
||||
if (!supportsPreventScrollOption) {
|
||||
|
||||
+2
-2
@@ -93,8 +93,8 @@ try {
|
||||
}
|
||||
});
|
||||
window.addEventListener('test', null, opts);
|
||||
} catch (e) {
|
||||
console.debug('error checking capture support');
|
||||
} catch {
|
||||
// no capture support
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user