Skip to content

Commit

Permalink
Stop #105 breaking at least
Browse files Browse the repository at this point in the history
  • Loading branch information
simoncozens committed Nov 28, 2024
1 parent 72f8a86 commit 6afa5f1
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion shaperglot-web/www/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,12 @@ class Shaperglot {
window.thing = files[0];
$("#filename").text(files[0].name);
let style = document.styleSheets[0].cssRules[0].style;
style.setProperty("src", "url(" + URL.createObjectURL(files[0]) + ")");
try {
style.setProperty("src", "url(" + URL.createObjectURL(files[0]) + ")");
} catch (e) {
console.error(e + `: https://bugzilla.mozilla.org/show_bug.cgi?id=1466489 is RESOLVED FIXED -
and yet here we are.`);
}
var reader = new FileReader();
let that = this;
reader.onload = function (e) {
Expand Down

0 comments on commit 6afa5f1

Please sign in to comment.