Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
async function loadDiff(page) {
const oldHtml = await loadHtml(page, PageStore.htmlTypes.OLD);
const newHtml = await loadHtml(page, PageStore.htmlTypes.NEW);
return diff(page, oldHtml, newHtml);
}