diff --git a/public/compatTest.js b/public/compatTest.js index 05b80d10f..2b4ea2ad4 100644 --- a/public/compatTest.js +++ b/public/compatTest.js @@ -3,8 +3,13 @@ function compatTest() { var hasWebSockets = typeof WebSocket !== 'undefined'; var hasWebCrypto = window.crypto && typeof window.crypto.subtle !== 'undefined'; var hasObjectFromEntries = typeof Object.fromEntries !== 'undefined'; + var hasResizeObserver = typeof window.ResizeObserver !== 'undefined'; + var hasCssSupports = window.CSS && typeof window.CSS.supports === 'function'; + var hasIntl = typeof window.Intl !== 'undefined'; + var hasDisplayNames = hasIntl && typeof Intl.DisplayNames !== 'undefined'; - var isCompatible = hasPromise && hasWebSockets && hasWebCrypto && hasObjectFromEntries; + var isCompatible = hasPromise && hasWebSockets && hasWebCrypto && hasObjectFromEntries && hasResizeObserver + && hasCssSupports && hasDisplayNames; if (isCompatible || (window.localStorage && window.localStorage.getItem('tt-ignore-compat'))) { window.isCompatTestPassed = true; @@ -17,6 +22,9 @@ function compatTest() { console.warn('WebSocket', hasWebSockets); console.warn('WebCrypto', hasWebCrypto); console.warn('Object.fromEntries', hasObjectFromEntries); + console.warn('ResizeObserver', hasResizeObserver); + console.warn('CSS.supports', hasCssSupports); + console.warn('Intl.DisplayNames', hasDisplayNames); } document.body.innerHTML = '