diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2019-05-02 17:55:59 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2019-05-02 17:55:59 +0900 |
| commit | 2d1f50303d3fe8aa95d8d803e36b5ca00f4523a8 (patch) | |
| tree | 154e74549d18fad8ad1390edc052f94cfc684e9d /src/client/app/common/scripts | |
| parent | 11.8.1 (diff) | |
| download | sharkey-2d1f50303d3fe8aa95d8d803e36b5ca00f4523a8.tar.gz sharkey-2d1f50303d3fe8aa95d8d803e36b5ca00f4523a8.tar.bz2 sharkey-2d1f50303d3fe8aa95d8d803e36b5ca00f4523a8.zip | |
Improve MisskeyPages
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); } |