@luceosports/play-rendering 2.2.1 → 2.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@luceosports/play-rendering",
3
- "version": "2.2.1",
3
+ "version": "2.2.3",
4
4
  "main": "dist/play-rendering.js",
5
5
  "types": "dist/play-rendering.d.ts",
6
6
  "scripts": {
@@ -123,7 +123,16 @@ export default class PlayModel {
123
123
  };
124
124
 
125
125
  const luceoSportsWatermark = await loadImage(`${STORAGE_URL}/${LUCEOSPORTS_WATERMARK_PATH}`);
126
- const teamLogoWatermark = teamLogoPath ? await loadImage(`${STORAGE_URL}/${teamLogoPath}`) : null;
126
+
127
+ let teamLogoWatermark = null;
128
+ if (teamLogoPath) {
129
+ try {
130
+ teamLogoWatermark = await loadImage(`${STORAGE_URL}/${teamLogoPath}`);
131
+ } catch (e) {
132
+ console.log('teamLogoWatermark loadImage error', e);
133
+ }
134
+ }
135
+
127
136
  PlayModel.watermark = {
128
137
  LuceoSports: luceoSportsWatermark,
129
138
  TeamLogo: teamLogoWatermark