a-frame-components
Advanced tools
Comparing version 1.0.47 to 1.0.48
@@ -11,3 +11,3 @@ export default { | ||
var currentWidth = el.getAttribute('width'); | ||
var newWidth = container.getWidth().toString(); | ||
var newWidth = container.getWidth ? container.getWidth().toString() : (container.getAttribute('width') || '0'); | ||
if (currentWidth !== newWidth) { | ||
@@ -18,3 +18,3 @@ el.setAttribute('width', newWidth); | ||
var currentHeight = el.getAttribute('height'); | ||
var newHeight = container.getHeight().toString(); | ||
var newHeight = container.getHeight ? container.getHeight().toString() : (container.getAttribute('height') || '0'); | ||
if (currentHeight !== newHeight) { | ||
@@ -21,0 +21,0 @@ el.setAttribute('height', newHeight); |
{ | ||
"name": "a-frame-components", | ||
"version": "1.0.47", | ||
"version": "1.0.48", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -12,3 +12,3 @@ export default { | ||
const currentWidth = el.getAttribute('width'); | ||
const newWidth = container.getWidth().toString(); | ||
const newWidth = container.getWidth ? container.getWidth().toString() : (container.getAttribute('width') || '0'); | ||
if (currentWidth !== newWidth) { | ||
@@ -20,3 +20,3 @@ el.setAttribute('width', newWidth); | ||
const currentHeight = el.getAttribute('height'); | ||
const newHeight = container.getHeight().toString(); | ||
const newHeight = container.getHeight ? container.getHeight().toString() : (container.getAttribute('height') || '0'); | ||
if (currentHeight !== newHeight) { | ||
@@ -23,0 +23,0 @@ el.setAttribute('height', newHeight); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1660775