forked from OpenNeo/impress
In my last change, I didn't try to change the APIs too much, and kept the concept of `crossOrigin` running through `getBestImageUrlForLayer`. Now, I've moved the `safeImageUrl` call _outside_ `getBestImageUrlForLayer`, by putting it at the call site: We now call `safeImageUrl` from `loadImage` (which needs to know the `crossOrigin` flag anyway!), and at the `img` tag call site. This simplifies all of the call sites a lot, I think! |
||
|---|---|---|
| .. | ||
| app | ||
| server | ||
| shared | ||
| index.js | ||
| react-app-env.d.ts | ||