Fix Codersrank, for real this time
This commit is contained in:
@@ -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")) {
|
||||
|
||||
Reference in New Issue
Block a user