Merge pull request #1599 from Dinnerbone/fix/mime

Fixed mime issue detection
This commit is contained in:
Nathan Adams 2020-11-20 00:31:03 +01:00 committed by GitHub
commit b492a9c379
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -162,7 +162,7 @@ exports.RufflePlayer = class RufflePlayer extends HTMLElement {
// Serious duck typing. In error conditions, let's not make assumptions. // Serious duck typing. In error conditions, let's not make assumptions.
const message = const message =
e && e.message ? String(e.message).toLowerCase() : ""; e && e.message ? String(e.message).toLowerCase() : "";
if (message.indexOf("MIME") >= 0) { if (message.indexOf("mime") >= 0) {
this.panicked = true; this.panicked = true;
this.container.innerHTML = ` this.container.innerHTML = `
<div id="panic"> <div id="panic">