diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2019-05-02 17:57:29 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2019-05-02 17:57:29 +0900 |
| commit | 88d934f9221c7eb96d24a9853fa26d0c49d90ded (patch) | |
| tree | dfab59b87473bb2ab7a0827dadb53e6c714cd1f1 /src/client/app/common/scripts | |
| parent | Merge branch 'develop' (diff) | |
| parent | 11.9.0 (diff) | |
| download | misskey-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.ts | 6 |
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); } |