Merge pull request #4587 from thornbill/no-expected-error-logs

Remove error logs for checks expected to fail
This commit is contained in:
Bill Thornton
2023-05-10 10:49:47 -04:00
committed by GitHub
3 changed files with 6 additions and 6 deletions
+2 -2
View File
@@ -46,8 +46,8 @@ try {
});
elem.scrollTo(opts);
} catch (e) {
console.error('error checking ScrollToOptions support');
} catch {
// no scroll to options support
}
/**
+2 -2
View File
@@ -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
View File
@@ -93,8 +93,8 @@ try {
}
});
window.addEventListener('test', null, opts);
} catch (e) {
console.debug('error checking capture support');
} catch {
// no capture support
}
/**