ment URL for elmeent inline styles * @return {string} */ function getSourceForDisplay(source) { let href; switch (source.type) { case "element": href = getStr("changes.elementStyleLabel"); break; case "inline": href = getStr("changes.inlineStyleSheetLabel2"); break; case "stylesheet": { const url = new URL(source.href); href = url.pathname.substring(url.pathname.lastIndexOf("/") + 1); break; } } return href; } module.exports.getSourceForDisplay = getSourceForDisplay; PK