mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-28 04:24:00 +03:00
fix: restore removed function
This commit is contained in:
parent
21f478c548
commit
0f41e086a6
|
@ -13,4 +13,11 @@ import "../../node_modules/bootstrap/js/dist/tooltip";
|
||||||
|
|
||||||
import "../scss/styles.scss";
|
import "../scss/styles.scss";
|
||||||
|
|
||||||
|
function setupPrettify() {
|
||||||
|
const codeBlocks = document.querySelectorAll("pre code");
|
||||||
|
codeBlocks.forEach((block) => {
|
||||||
|
block.parentElement.classList.add("prettyprint", "well");
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
setupPrettify();
|
setupPrettify();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user