Move the `errorWrapper` definition in the `getViewerConfiguration` function
Move the `errorWrapper` definition in the `getViewerConfiguration` function

Similar to how we handle e.g. the "Open File"-buttons in non-GENERIC builds, we can handle the `errorWrapper` definition in the same way.

Shoobx/pdf.js,mozilla/pdf.js,mozilla/pdf.js,showpad/mozilla-pdf.js,Snuffleupagus/pdf.js,mozilla/pdf.js,timvandermeij/pdf.js,timvandermeij/pdf.js,Snuffleupagus/pdf.js,showpad/mozilla-pdf.js,timvandermeij/pdf.js,Shoobx/pdf.js,Shoobx/pdf.js,Snuffleupagus/pdf.js,showpad/mozilla-pdf.js