question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. ItΒ collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Scraping Apple device specs is broken

See original GitHub issue

Error when we launch this command : npx pwa-asset-generator logo.svg -b "linear-gradient(to bottom, #980005 0%, #CE3328 100%) fixed" --index ./index.html --manifest ./manifest.json

Console :

11:27:01 getSplashScreenMetaData Initialising puppeteer to load latest splash screen metadata πŸ€–
11:27:01 getAppleSplashScreenData Navigating to Apple Human Interface Guidelines website - https://developer.apple.com/design/human-interface-guidelines/ios/visual-design/adaptivity-and-layout/
11:27:02 getAppleSplashScreenData Waiting for the data table to be loaded
11:27:02 getAppleSplashScreenData Retrieved splash screen data
11:27:02 getDeviceScaleFactorData Navigating to Apple Human Interface Guidelines website - https://developer.apple.com/design/human-interface-guidelines/ios/icons-and-images/image-size-and-resolution/
11:27:05 getDeviceScaleFactorData Retrieved scale factor data
11:27:05 getSplashScreenMetaData Loaded metadata for iOS platform πŸ™Œ
11:27:05 saveImages Initialising puppeteer to take screenshots πŸ€–
11:27:05 getShellHtml Generating shell html with provided image source
11:27:05 getShellHtml Providing shell html as page content
11:27:05 saveImages Saved image apple-splash-0-0 πŸ™Œ
11:27:05 saveImages Saved image manifest-icon-192 πŸ™Œ
11:27:05 saveImages Saved image apple-icon-120 πŸ™Œ
11:27:05 saveImages Saved image apple-icon-180 πŸ™Œ
11:27:05 saveImages Saved image apple-splash-414-896 πŸ™Œ
11:27:05 saveImages Saved image apple-icon-152 πŸ™Œ
11:27:05 saveImages Saved image apple-icon-167 πŸ™Œ
11:27:05 saveImages Saved image apple-splash-768-1024 πŸ™Œ
11:27:05 saveImages Saved image apple-splash-768-1024 πŸ™Œ
11:27:05 saveImages Saved image apple-splash-375-667 πŸ™Œ
11:27:05 saveImages Saved image manifest-icon-512 πŸ™Œ
11:27:05 saveImages Saved image apple-splash-1024-1366 πŸ™Œ
11:27:05 saveImages Saved image apple-splash-375-812 πŸ™Œ
11:27:05 saveImages Saved image apple-splash-810-1080 πŸ™Œ
11:27:05 saveImages Saved image apple-splash-0-0 πŸ™Œ
11:27:05 saveImages Saved image apple-splash-414-736 πŸ™Œ
11:27:05 saveImages Saved image apple-splash-414-896 πŸ™Œ
11:27:05 saveImages Saved image apple-splash-375-812 πŸ™Œ
11:27:05 saveImages Saved image apple-splash-0-0 πŸ™Œ
11:27:05 saveImages Saved image apple-splash-375-667 πŸ™Œ
11:27:05 saveImages Saved image apple-splash-320-568 πŸ™Œ
11:27:05 saveImages Saved image apple-splash-414-736 πŸ™Œ
11:27:05 saveImages Saved image apple-splash-414-896 πŸ™Œ
11:27:05 saveImages Saved image apple-splash-834-1194 πŸ™Œ
11:27:05 saveImages Saved image apple-splash-834-1112 πŸ™Œ

and result in index.html :

<meta name="apple-mobile-web-app-capable" content="yes">

<link rel="apple-touch-startup-image" href="apple-splash-1024-1366.jpg" media="(device-width: 512px) and (device-height: 683px) and (-webkit-device-pixel-ratio: 2) and (orientation: portrait)">
<link rel="apple-touch-startup-image" href="apple-splash-0-0.jpg" media="(device-width: 0px) and (device-height: 0px) and (-webkit-device-pixel-ratio: 2) and (orientation: landscape)">
<link rel="apple-touch-startup-image" href="apple-splash-834-1194.jpg" media="(device-width: 417px) and (device-height: 597px) and (-webkit-device-pixel-ratio: 2) and (orientation: portrait)">
<link rel="apple-touch-startup-image" href="apple-splash-768-1024.jpg" media="(device-width: NaNpx) and (device-height: NaNpx) and (-webkit-device-pixel-ratio: undefined) and (orientation: portrait)">
<link rel="apple-touch-startup-image" href="apple-splash-0-0.jpg" media="(device-width: NaNpx) and (device-height: NaNpx) and (-webkit-device-pixel-ratio: undefined) and (orientation: landscape)">
<link rel="apple-touch-startup-image" href="apple-splash-834-1112.jpg" media="(device-width: NaNpx) and (device-height: NaNpx) and (-webkit-device-pixel-ratio: undefined) and (orientation: portrait)">
<link rel="apple-touch-startup-image" href="apple-splash-810-1080.jpg" media="(device-width: NaNpx) and (device-height: NaNpx) and (-webkit-device-pixel-ratio: undefined) and (orientation: portrait)">
<link rel="apple-touch-startup-image" href="apple-splash-768-1024.jpg" media="(device-width: 384px) and (device-height: 512px) and (-webkit-device-pixel-ratio: 2) and (orientation: portrait)">
<link rel="apple-touch-startup-image" href="apple-splash-414-896.jpg" media="(device-width: NaNpx) and (device-height: NaNpx) and (-webkit-device-pixel-ratio: undefined) and (orientation: portrait)">
<link rel="apple-touch-startup-image" href="apple-splash-375-812.jpg" media="(device-width: NaNpx) and (device-height: NaNpx) and (-webkit-device-pixel-ratio: undefined) and (orientation: portrait)">
<link rel="apple-touch-startup-image" href="apple-splash-414-896.jpg" media="(device-width: 138px) and (device-height: 298.6666666666667px) and (-webkit-device-pixel-ratio: 3) and (orientation: portrait)">
<link rel="apple-touch-startup-image" href="apple-splash-0-0.jpg" media="(device-width: 0px) and (device-height: 0px) and (-webkit-device-pixel-ratio: 3) and (orientation: landscape)">
<link rel="apple-touch-startup-image" href="apple-splash-375-812.jpg" media="(device-width: 125px) and (device-height: 270.6666666666667px) and (-webkit-device-pixel-ratio: 3) and (orientation: portrait)">
<link rel="apple-touch-startup-image" href="apple-splash-414-896.jpg" media="(device-width: 207px) and (device-height: 448px) and (-webkit-device-pixel-ratio: 2) and (orientation: portrait)">
<link rel="apple-touch-startup-image" href="apple-splash-414-736.jpg" media="(device-width: 138px) and (device-height: 245.33333333333334px) and (-webkit-device-pixel-ratio: 3) and (orientation: portrait)">
<link rel="apple-touch-startup-image" href="apple-splash-375-667.jpg" media="(device-width: 187.5px) and (device-height: 333.5px) and (-webkit-device-pixel-ratio: 2) and (orientation: portrait)">
<link rel="apple-touch-startup-image" href="apple-splash-414-736.jpg" media="(device-width: NaNpx) and (device-height: NaNpx) and (-webkit-device-pixel-ratio: undefined) and (orientation: portrait)">
<link rel="apple-touch-startup-image" href="apple-splash-375-667.jpg" media="(device-width: NaNpx) and (device-height: NaNpx) and (-webkit-device-pixel-ratio: undefined) and (orientation: portrait)">
<link rel="apple-touch-startup-image" href="apple-splash-320-568.jpg" media="(device-width: NaNpx) and (device-height: NaNpx) and (-webkit-device-pixel-ratio: undefined) and (orientation: portrait)">

</head><body></body></html>

we have device-height with NaNpx.

It worked 3 month ago.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:11

github_iconTop GitHub Comments

1reaction
maklai-0x001commented, Jul 30, 2020

Thanks for the input @maklai-0x001, I’m working on the issue atm. I will release a fix soon.

Thank you for that tool , its really cool and helpful !

0reactions
onderceylancommented, Jul 30, 2020

πŸŽ‰ This issue has been resolved in version 3.1.2 πŸŽ‰

The release is available on:

Your semantic-release bot πŸ“¦πŸš€

Read more comments on GitHub >

github_iconTop Results From Across the Web

Scrapping Apple iPads and Tablets - YouTube
Apple iPad opened up to see what's inside for precious metal recovery.Not a great deal inside with a very small motherboard.Keep scrapping ......
Read more >
Important safety information for iPhone - Apple Support
Don't use iPhone with cracked glass, as it may cause injury. If you're concerned about scratching the surface of iPhone, consider using a...
Read more >
My Retina Display has stain damage, HELP!…
It looks terrible and getting worse and worse. I bought my MacBook pro retina 13'' exactly 11 months ago and it is under...
Read more >
how do i find out the spec of my broken mac - Apple Discussions
My macbook pro 17inch is smashed. I am in the process of an insurance claim and there is dispute its spec. I know...
Read more >
Weird scratch-like spots showing on up on… - Apple Community
Hey everyone, about a month ago I started to notice these little scratch-like spots along the edge of my display, but I'm not...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found