How to Intercept page scroll event

我也遇到了同样的错误,但通过在脚本定义中包含以下内容成功解决了问题:

<script type="text/discourse-plugin" version="0.10.2">