puppeteer/test/assets/initiator.js
Jan Scheffler a271145b06
feat: add initiator to HTTPRequest (#7614)
Co-Authored-By: atersolis <atersolis@atersolis.net>
2021-09-29 15:14:21 +00:00

9 lines
261 B
JavaScript

const script = document.createElement('script');
script.src = './injectedfile.js';
document.body.appendChild(script);
const style = document.createElement('link');
style.rel = 'stylesheet';
style.href = './injectedstyle.css';
document.head.appendChild(style);