🚀 imrpove algorithm

This commit is contained in:
platane
2020-10-31 17:23:19 +01:00
parent d81ecec836
commit b595e7de53
22 changed files with 707 additions and 451 deletions

View File

@@ -15,8 +15,8 @@ const config = {
demo: demos[0],
};
{
const d = window.location.pathname.match(/(\w+)\.html/)?.[1];
if (d && demos.includes(d)) config.demo = d;
const d = window.location.pathname.match(/(\w+)\.html/);
if (d && demos.includes(d[1])) config.demo = d[1];
}
const onChange = () => {