[Canvas worker] restore module_worker.js
diff --git a/player/js/module_worker.js b/player/js/module_worker.js
index 4ae2ae1..fc4faa9 100644
--- a/player/js/module_worker.js
+++ b/player/js/module_worker.js
@@ -666,19 +666,16 @@
           animation.container = animationParams.container;
           delete animationParams.container;
         }
-        if (animationParams.renderer === 'canvas') {
-          if (!animationParams.rendererSettings.canvas) {
-            var canvas = document.createElement('canvas');
-            animation.container.appendChild(canvas);
-            canvas.width = animationParams.animationData.w;
-            canvas.height = animationParams.animationData.h;
-            canvas.style.width = '100%';
-            canvas.style.height = '100%';
-            var offscreen = canvas.transferControlToOffscreen();
-            animationParams.rendererSettings.canvas = offscreen;
-          }
-
-          transferedObjects.push(animationParams.rendererSettings.canvas);
+        if (animationParams.renderer === 'canvas' && !animationParams.rendererSettings.canvas) {
+          var canvas = document.createElement('canvas');
+          animation.container.appendChild(canvas);
+          canvas.width = animationParams.animationData.w;
+          canvas.height = animationParams.animationData.h;
+          canvas.style.width = '100%';
+          canvas.style.height = '100%';
+          var offscreen = canvas.transferControlToOffscreen();
+          transferedObjects.push(offscreen);
+          animationParams.rendererSettings.canvas = offscreen;
         }
         animations[animationId] = animation;
         workerInstance.postMessage({