fix refusal of trangender furry to implement useful years-old ECMA standard javascript features.

jschan
Thomas Lynch 3 years ago
parent a2163d8aed
commit 75ff62e05e
No known key found for this signature in database
GPG Key ID: 36A72F7C62CF8480
  1. 6
      gulp/res/js/watchlist.js

@ -14,9 +14,9 @@ class ThreadWatcher {
this.settingsInput = document.getElementById('watchlist-setting');
this.clearButton = document.getElementById('watchlist-clear');
this.clearButton.addEventListener('click', () => this.clear(), false)
const threadMatch = window.location.pathname.match(/^\/(?<threadBoard>\w+)(?:\/manage)?\/thread\/(?<threadId>\d+)\.html$/);
if (threadMatch && threadMatch.groups) {
const key = `${threadMatch.groups.threadBoard}-${threadMatch.groups.threadId}`;
const threadMatch = window.location.pathname.match(/^\/(\w+)(?:\/manage)?\/thread\/(\d+)\.html$/);
if (threadMatch !== null) {
const key = `${threadMatch[1]}-${threadMatch[2]}`;
const data = this.watchListMap.get(key);
//window.addEventListener('scroll', () => { /**/ }); //this is not ideal
if (data) {

Loading…
Cancel
Save