Commit 48ff85cb authored by Robert Knight's avatar Robert Knight

Remove Flipgrid embed support

Flipgrid no longer exists. URLs like https://flipgrid.com/s/030475b8ceff and the
embedded variant (`?embed=true`) take you to a PDF file [1] telling you about the
retirement of the service.

[1] https://cdn-dynmedia-1.microsoft.com/is/content/microsoftcorp/microsoft/final/en-us/microsoft-product-and-services/microsoft-education/downloadables/flip-ms-edu.pdf
parent dec4f24c
...@@ -228,13 +228,6 @@ const embedGenerators: Array<(link: HTMLAnchorElement) => HTMLElement | null> = ...@@ -228,13 +228,6 @@ const embedGenerators: Array<(link: HTMLAnchorElement) => HTMLElement | null> =
id => `https://player.vimeo.com/video/${id}`, id => `https://player.vimeo.com/video/${id}`,
), ),
// Matches URLs like https://flipgrid.com/s/030475b8ceff
createEmbedGenerator(
'flipgrid.com',
/^\/s\/([^/]+)$/,
id => `https://flipgrid.com/s/${id}?embed=true`,
),
/** /**
* Match Internet Archive URLs * Match Internet Archive URLs
* *
......
...@@ -275,22 +275,6 @@ describe('sidebar/media-embedder', () => { ...@@ -275,22 +275,6 @@ describe('sidebar/media-embedder', () => {
}); });
}); });
it('replaces Flipgrid links with iframes', () => {
[
['https://flipgrid.com/s/abc123', 'abc123'],
['https://flipgrid.com/s/def456?foo', 'def456'],
].forEach(([url, id]) => {
const element = domElement('<a href="' + url + '">' + url + '</a>');
mediaEmbedder.replaceLinksWithEmbeds(element);
assert.equal(
embedUrl(element),
'https://flipgrid.com/s/' + id + '?embed=true',
);
});
});
it('replaces internet archive links with iframes', () => { it('replaces internet archive links with iframes', () => {
const urls = [ const urls = [
// Video details page. // Video details 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