Рефакторинг

This commit is contained in:
Book Pauk
2020-12-15 21:56:14 +07:00
parent e48af7ee7d
commit 37e14b397c
2 changed files with 15 additions and 17 deletions

View File

@@ -195,9 +195,7 @@ class ContentsPage extends Vue {
const ims = parsed.images;
for (i = 0; i < ims.length; i++) {
const image = ims[i];
let id = image.href;
if (id[0] == "#")
id = id.substr(1);
let {id} = parsed.imageHrefToId(image.href);
const label = `Изображение ${image.num}`;
const indentStyle = getIndentStyle(1);