Closed franfaccin closed 1 year ago
Use the string from the video config when available to get the correct size units instead of parsing to an int. This fixes an issue where parsing an int of size "100%" became a video of "100" pixels.
Example page: https://playlist-randomizer.com/PLotWwwqNW_RuxxCCKYA2UT4kwICn-JsSN
After fix:
I'm using .toString() the same way Google's www-widgetapi.js script does it, by using the config string provided by the page.
.toString()
www-widgetapi.js
Use the string from the video config when available to get the correct size units instead of parsing to an int. This fixes an issue where parsing an int of size "100%" became a video of "100" pixels.
Example page: https://playlist-randomizer.com/PLotWwwqNW_RuxxCCKYA2UT4kwICn-JsSN
After fix:
I'm using
.toString()
the same way Google'swww-widgetapi.js
script does it, by using the config string provided by the page.