Commit d0280258 authored by Robert Knight's avatar Robert Knight

Fail more gracefully in unsupported versions of Edge Legacy

Add a test for the `Element.prepend()` method so that startup fails more
gracefully in older, unsupported versions of Edge Legacy (<= 16). This
API was chosen as a representative test because it's Chrome/Edge Legacy
support closely matches our minimum versions.

The same change was made for the LMS app in https://github.com/hypothesis/lms/pull/2209.
parent 94b865f0
......@@ -17,6 +17,7 @@ export function isBrowserSupported() {
// DOM API checks for frequently-used APIs.
() => new URL(document.location.href), // URL constructor.
() => new Request('https://hypothes.is'), // Part of the `fetch` API.
() => document.body.prepend.name, // Element.prepend() method.
// DOM API checks for less frequently-used APIs.
// These are less likely to have been polyfilled by the host page.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment