@@ -172,7 +172,7 @@ function monitor_options() {
172
172
// Monitor input & select changes
173
173
const fields = document . querySelectorAll ( "input, select" ) ;
174
174
for ( const field of fields ) {
175
- if ( field . type == "text" ) {
175
+ if ( field . type === "text" ) {
176
176
// React on enter
177
177
field . onkeydown = async evt => {
178
178
if ( evt . keyCode === 13 ) {
@@ -185,7 +185,7 @@ function monitor_options() {
185
185
// React on change
186
186
field . onchange = async evt => {
187
187
let value = evt . target . value ;
188
- if ( evt . target . type == "checkbox" ) {
188
+ if ( evt . target . type === "checkbox" ) {
189
189
value = evt . target . checked ? "on" : "off" ;
190
190
}
191
191
const params = { } ;
@@ -212,7 +212,7 @@ const get_third_party_paths = (function() {
212
212
return async function ( ) {
213
213
if ( ! paths ) {
214
214
const response = await get_source ( "tools/rewriting/ThirdPartyPaths.txt" ) ;
215
- paths = response . split ( "\n" ) . filter ( path => path != "" ) ;
215
+ paths = response . split ( "\n" ) . filter ( path => path !== "" ) ;
216
216
}
217
217
218
218
return paths ;
@@ -259,7 +259,7 @@ export function filter_languages(files) {
259
259
const rust_extensions = [ "rs" ] ;
260
260
261
261
return files . filter ( file => {
262
- if ( file . type == "directory" ) {
262
+ if ( file . type === "directory" ) {
263
263
return true ;
264
264
} else if ( cpp_extensions . find ( ext => file . path . endsWith ( "." + ext ) ) ) {
265
265
return cpp ;
@@ -296,12 +296,12 @@ export function filter_last_push_date(files) {
296
296
const upper_limit = new Date ( ) ;
297
297
let lower_limit = new Date ( ) ;
298
298
299
- if ( elem . value == "one_year" ) {
299
+ if ( elem . value === "one_year" ) {
300
300
lower_limit . setFullYear ( upper_limit . getFullYear ( ) - 1 ) ;
301
- } else if ( elem . value == "two_years" ) {
301
+ } else if ( elem . value === "two_years" ) {
302
302
upper_limit . setFullYear ( upper_limit . getFullYear ( ) - 1 ) ;
303
303
lower_limit . setFullYear ( lower_limit . getFullYear ( ) - 2 ) ;
304
- } else if ( elem . value == "older_than_two_years" ) {
304
+ } else if ( elem . value === "older_than_two_years" ) {
305
305
upper_limit . setFullYear ( upper_limit . getFullYear ( ) - 2 ) ;
306
306
lower_limit = new Date ( "1970-01-01T00:00:00Z" ) ;
307
307
} else {
@@ -345,7 +345,7 @@ export function build_navbar(path, revision) {
345
345
346
346
// Display helpers
347
347
function canDisplay ( ) {
348
- return document . readyState == "complete" ;
348
+ return document . readyState === "complete" ;
349
349
}
350
350
351
351
export function message ( cssClass , message ) {
0 commit comments