diff --git a/addons/addon-webgl/src/customGlyphs/CustomGlyphRasterizer.ts b/addons/addon-webgl/src/customGlyphs/CustomGlyphRasterizer.ts index 9d32ac3e6..eb73117e5 100644 --- a/addons/addon-webgl/src/customGlyphs/CustomGlyphRasterizer.ts +++ b/addons/addon-webgl/src/customGlyphs/CustomGlyphRasterizer.ts @@ -28,6 +28,10 @@ export function loadCustomGlyphDefinitions(): Promise { if (!loadingPromise) { loadingPromise = import('./CustomGlyphDefinitions').then(module => { customGlyphDefinitions = module.customGlyphDefinitions; + }).catch(err => { + // Reset the loading promise on failure to allow retry + loadingPromise = undefined; + throw err; }); } return loadingPromise;