sjerpbouwtsites / rockers-concertagenda

1 stars 1 forks source link

errorWrapper injectie eruit. #188

Closed sjerpbouwtsites closed 1 year ago

sjerpbouwtsites commented 1 year ago

staat er twee keer in. wordt niet gebruikt.

 // zet ErrorWrapper class in puppeteer document.
  await page.evaluate(
    ({ ErrorWrapperString }) => {
      const newScriptContent = ErrorWrapperString;
      const scriptTag = document.createElement('script');
      scriptTag.id = 'rockagenda-extra-code';
      scriptTag.innerHTML = newScriptContent;
      document.body.appendChild(scriptTag);
    },
    { ErrorWrapperString: ErrorWrapper.toString() },
  );