From 2d1f50303d3fe8aa95d8d803e36b5ca00f4523a8 Mon Sep 17 00:00:00 2001 From: syuilo Date: Thu, 2 May 2019 17:55:59 +0900 Subject: Improve MisskeyPages --- src/client/app/common/scripts/collect-page-vars.ts | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/client/app/common/scripts') diff --git a/src/client/app/common/scripts/collect-page-vars.ts b/src/client/app/common/scripts/collect-page-vars.ts index 683f9b73a5..4c40d5d88e 100644 --- a/src/client/app/common/scripts/collect-page-vars.ts +++ b/src/client/app/common/scripts/collect-page-vars.ts @@ -26,6 +26,12 @@ export function collectPageVars(content) { type: 'boolean', value: x.default || false }); + } else if (x.type === 'counter') { + pageVars.push({ + name: x.name, + type: 'number', + value: 0 + }); } else if (x.children) { collect(x.children); } -- cgit v1.2.3-freya