var to const

This commit is contained in:
Lalle 2023-04-28 14:53:25 +02:00
parent 69051d6095
commit 5183de55b6
No known key found for this signature in database
GPG Key ID: A6583D207A8F6B0D
3 changed files with 137 additions and 137 deletions

View File

@ -30,7 +30,7 @@ import UnreadIndex from './UnreadIndex'
* Full docs: https://github.com/decaffeinate/decaffeinate/blob/main/docs/suggestions.md * Full docs: https://github.com/decaffeinate/decaffeinate/blob/main/docs/suggestions.md
*/ */
var ThreadWatcher = { const ThreadWatcher = {
init() { init() {
let sc let sc
if (!(this.enabled = Conf['Thread Watcher'])) { return } if (!(this.enabled = Conf['Thread Watcher'])) { return }

View File

@ -16,7 +16,7 @@ import ThreadWatcher from "./ThreadWatcher"
* DS207: Consider shorter variations of null checks * DS207: Consider shorter variations of null checks
* Full docs: https://github.com/decaffeinate/decaffeinate/blob/main/docs/suggestions.md * Full docs: https://github.com/decaffeinate/decaffeinate/blob/main/docs/suggestions.md
*/ */
var Unread = { const Unread = {
init() { init() {
if ((g.VIEW !== 'thread') || ( if ((g.VIEW !== 'thread') || (
!Conf['Unread Count'] && !Conf['Unread Count'] &&

View File

@ -16,7 +16,7 @@ import ThreadWatcher from "./ThreadWatcher"
* DS205: Consider reworking code to avoid use of IIFEs * DS205: Consider reworking code to avoid use of IIFEs
* Full docs: https://github.com/decaffeinate/decaffeinate/blob/main/docs/suggestions.md * Full docs: https://github.com/decaffeinate/decaffeinate/blob/main/docs/suggestions.md
*/ */
var UnreadIndex = { const UnreadIndex = {
lastReadPost: dict(), lastReadPost: dict(),
hr: dict(), hr: dict(),
markReadLink: dict(), markReadLink: dict(),