summaryrefslogtreecommitdiff
path: root/src/client/app/common/scripts
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2019-05-02 17:57:29 +0900
committersyuilo <syuilotan@yahoo.co.jp>2019-05-02 17:57:29 +0900
commit88d934f9221c7eb96d24a9853fa26d0c49d90ded (patch)
treedfab59b87473bb2ab7a0827dadb53e6c714cd1f1 /src/client/app/common/scripts
parentMerge branch 'develop' (diff)
parent11.9.0 (diff)
downloadmisskey-88d934f9221c7eb96d24a9853fa26d0c49d90ded.tar.gz
misskey-88d934f9221c7eb96d24a9853fa26d0c49d90ded.tar.bz2
misskey-88d934f9221c7eb96d24a9853fa26d0c49d90ded.zip
Merge branch 'develop'
Diffstat (limited to 'src/client/app/common/scripts')
-rw-r--r--src/client/app/common/scripts/collect-page-vars.ts6
1 files changed, 6 insertions, 0 deletions
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);
}