fix indentation
[BUG #8142] introduce PDF.js detection via environment check