@podium/utils
Advanced tools
Comparing version 4.1.1 to 4.1.2
@@ -30,3 +30,3 @@ 'use strict'; | ||
constructor({ | ||
crossorigin = '', | ||
crossorigin = undefined, | ||
pathname = '', | ||
@@ -46,3 +46,3 @@ disabled = false, | ||
`Value for argument variable "value", "${value}", is not valid`, | ||
); | ||
); | ||
@@ -49,0 +49,0 @@ this[_pathname] = pathname; |
@@ -51,4 +51,5 @@ 'use strict'; | ||
if (notEmpty(obj.crossorigin)) { | ||
args.push(`crossorigin="${obj.crossorigin}"`); | ||
if (obj.crossorigin || obj.crossorigin === '') { | ||
if (obj.crossorigin === true) args.push(`crossorigin`); | ||
else args.push(`crossorigin="${obj.crossorigin}"`); | ||
} | ||
@@ -55,0 +56,0 @@ |
{ | ||
"name": "@podium/utils", | ||
"version": "4.1.1", | ||
"version": "4.1.2", | ||
"description": "Common generic utility methods shared by @podium modules.", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
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
35124
773