From 821dbb88d30a89434f86eeee94af0bae51a134f1 Mon Sep 17 00:00:00 2001 From: Paul Kaplan Date: Mon, 3 Dec 2018 16:47:46 -0500 Subject: [PATCH] Remove promise finally because we are having trouble with polyfills --- src/import/load-costume.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/import/load-costume.js b/src/import/load-costume.js index 8802acbb8..fca461509 100644 --- a/src/import/load-costume.js +++ b/src/import/load-costume.js @@ -121,6 +121,10 @@ const fetchBitmapCanvas_ = function (costume, runtime, rotationCenter) { } costume.bitmapResolution = 2; + // Clean up the costume object + delete costume.textLayerMD5; + delete costume.textLayerAsset; + return { canvas: canvas, rotationCenter: rotationCenter, @@ -128,8 +132,8 @@ const fetchBitmapCanvas_ = function (costume, runtime, rotationCenter) { assetMatchesBase: scale === 1 && !textImageElement }; }) - .finally(() => { - // Clean up the costume object + .catch(() => { + // Clean up the text layer properties if it fails to load delete costume.textLayerMD5; delete costume.textLayerAsset; });