Fix Codersrank, for real this time

This commit is contained in:
2022-03-22 19:19:31 +01:00
parent bd2cebd8bb
commit 650725805d
2 changed files with 3 additions and 3 deletions

View File

@@ -36,7 +36,7 @@
}
});
if (crTypes) {
if (typeof crTypes !== 'undefined') {
// Codersrank
const placeholders = document.getElementsByClassName("cr-placeholder");
if (localStorage.getItem("load-codersrank")) {
@@ -57,7 +57,7 @@
const scriptElems = [];
for (type of types) {
const script = document.createElement("script");
script.src = "https://unpkg.com/@codersrank/activity/codersrank-" + type + ".min.js";
script.src = "https://unpkg.com/@codersrank/" + type + "/codersrank-" + type + ".min.js";
scriptElems.push(script);
}
for (ph of document.getElementsByClassName("cr-placeholder")) {