framework/js
Alexander Skvortsov 0650788e7c Fix scolling to first post via m.route.set
The default first post number is '1', so we scroll to that if we're calling `m.route.set` without a `near` parameter, as that means we're scrolling to the top.

This was present in beta 13's implementation, but accidentially omitted in 988b6c9.

We also remove unnecessary typecasting for simpler logic and increased consistency with beta 13.
2020-10-16 16:30:27 -04:00
..
dist Bundled output for commit a8b36cb76d [skip ci] 2020-10-16 20:05:15 +00:00
src Fix scolling to first post via m.route.set 2020-10-16 16:30:27 -04:00
.prettierrc.json Configure prettier via JSON file 2020-04-17 10:44:36 +02:00
admin.js Webpack (#1367) 2018-06-20 13:20:31 +09:30
forum.js Webpack (#1367) 2018-06-20 13:20:31 +09:30
package-lock.json npm audit security vulnerabilities patched 2020-10-14 10:11:34 +02:00
package.json npm audit security vulnerabilities patched 2020-10-14 10:11:34 +02:00
shims.d.ts Remove Mithril namespace export from shims.d.ts (#2347) 2020-10-02 19:34:06 -04:00
tsconfig.json Mithril 2 update (#2255) 2020-09-23 22:40:37 -04:00
webpack.config.js Initial TypeScript infrastructure (#2206) 2020-07-03 14:47:44 +02:00