whatsapp-web.js 0.3.1
Headless mode stopped working, returning null as the QR code. This fixes the issue by directly extracting the code from the canvas element present in the page instead of the data attribute, which did not get set while in headless mode.