Hubs-Foundation/Spoke

URL.createObjectUrl is deprecated in Chrome and 404s on screenshot after publish

justincolangelo opened this issue · 1 comments

Describe the bug
URL.createObjectUrl is deprecated in Chrome and 404s on screenshot after publish.

To Reproduce
Steps to reproduce the behavior:

  1. Open Chrome and spoke and create a new project or open existing and publish
  2. When "Scene Published" dialog is presented see the broken img

Expected behavior
The image is displayed

Screenshots
image

Additional context
Firefox doesn't have this issue. Seems to only be happening on Chrome and maybe webkit in general. Haven't tried Safari.

It seems like this runs too soon on Chrome finally { if (screenshotUrl) { URL.revokeObjectURL(screenshotUrl); }

I tested this by commenting that revoke line and it works in Chrome after.