Skip to content
This repository has been archived by the owner on Jun 7, 2024. It is now read-only.

Commit

Permalink
fix(core/linter/a11y): import axe from jsdelivr instead of unpkg (spe…
Browse files Browse the repository at this point in the history
  • Loading branch information
sidvishnoi authored Apr 12, 2024
1 parent ba1f9cd commit 3f9bf15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/linter-rules/a11y.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ async function getViolations(opts) {
function importAxe() {
const script = document.createElement("script");
script.classList.add("remove");
script.src = "https://unpkg.com/axe-core@4/axe.min.js";
script.src = "https://cdn.jsdelivr.net/npm/axe-core@4/axe.min.js";
document.head.appendChild(script);
return new Promise((resolve, reject) => {
script.onload = () => resolve(window.axe);
Expand Down

0 comments on commit 3f9bf15

Please sign in to comment.