6 lines
206 B
JavaScript
6 lines
206 B
JavaScript
|
let post_name = location.pathname.match(/^\/posts\/([^\/]+)\/*$/)[1];
|
||
|
let el = document.createElement("script");
|
||
|
el.src = `/media/${post_name}/blogin.js`;
|
||
|
el.type = "module";
|
||
|
document.body.appendChild(el);
|