If wkhtmltopdf is used to print a site that's using Muuri, a JavaScript TypeError occurs and Muuri does not work in the resulting PDF. This is because wkhtmltopdf uses version 4 of Qt WebKit, which is old and doesn't have Function.prototype.bind.
> wkhtmltopdf.exe --debug-javascript https://muuri.dev/ out.pdf
...
Warning: undefined:0 TypeError: 'undefined' is not a function
This can be worked around by adding a polyfill for Function.prototype.bind.
This issue is not relevant to Muuri's core as far as I can tell as Muuri is not "officially" supported in browsers that don't have Function.prototype.bind.
If wkhtmltopdf is used to print a site that's using Muuri, a JavaScript TypeError occurs and Muuri does not work in the resulting PDF. This is because wkhtmltopdf uses version 4 of Qt WebKit, which is old and doesn't have
Function.prototype.bind
.This can be worked around by adding a polyfill for
Function.prototype.bind
.