Spoke icon indicating copy to clipboard operation
Spoke copied to clipboard

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

Open justincolangelo opened this issue 2 years ago • 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.

justincolangelo avatar Jan 21 '23 19:01 justincolangelo

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.

justincolangelo avatar Jan 21 '23 20:01 justincolangelo