@@ -179,7 +179,7 @@ function monitor_options() {
179
179
// Monitor input & select changes
180
180
const fields = document . querySelectorAll ( "input, select" ) ;
181
181
for ( const field of fields ) {
182
- if ( field . type == "text" ) {
182
+ if ( field . type === "text" ) {
183
183
// React on enter
184
184
field . onkeydown = async evt => {
185
185
if ( evt . keyCode === 13 ) {
@@ -192,7 +192,7 @@ function monitor_options() {
192
192
// React on change
193
193
field . onchange = async evt => {
194
194
let value = evt . target . value ;
195
- if ( evt . target . type == "checkbox" ) {
195
+ if ( evt . target . type === "checkbox" ) {
196
196
value = evt . target . checked ? "on" : "off" ;
197
197
}
198
198
const params = { } ;
@@ -219,7 +219,7 @@ const get_third_party_paths = (function() {
219
219
return async function ( ) {
220
220
if ( ! paths ) {
221
221
const response = await get_source ( "tools/rewriting/ThirdPartyPaths.txt" ) ;
222
- paths = response . split ( "\n" ) . filter ( path => path != "" ) ;
222
+ paths = response . split ( "\n" ) . filter ( path => path !== "" ) ;
223
223
}
224
224
225
225
return paths ;
@@ -266,7 +266,7 @@ export function filter_languages(files) {
266
266
const rust_extensions = [ "rs" ] ;
267
267
268
268
return files . filter ( file => {
269
- if ( file . type == "directory" ) {
269
+ if ( file . type === "directory" ) {
270
270
return true ;
271
271
} else if ( cpp_extensions . find ( ext => file . path . endsWith ( "." + ext ) ) ) {
272
272
return cpp ;
@@ -303,12 +303,12 @@ export function filter_last_push_date(files) {
303
303
const upper_limit = new Date ( ) ;
304
304
let lower_limit = new Date ( ) ;
305
305
306
- if ( elem . value == "one_year" ) {
306
+ if ( elem . value === "one_year" ) {
307
307
lower_limit . setFullYear ( upper_limit . getFullYear ( ) - 1 ) ;
308
- } else if ( elem . value == "two_years" ) {
308
+ } else if ( elem . value === "two_years" ) {
309
309
upper_limit . setFullYear ( upper_limit . getFullYear ( ) - 1 ) ;
310
310
lower_limit . setFullYear ( lower_limit . getFullYear ( ) - 2 ) ;
311
- } else if ( elem . value == "older_than_two_years" ) {
311
+ } else if ( elem . value === "older_than_two_years" ) {
312
312
upper_limit . setFullYear ( upper_limit . getFullYear ( ) - 2 ) ;
313
313
lower_limit = new Date ( "1970-01-01T00:00:00Z" ) ;
314
314
} else {
@@ -352,7 +352,7 @@ export function build_navbar(path, revision) {
352
352
353
353
// Display helpers
354
354
function canDisplay ( ) {
355
- return document . readyState == "complete" ;
355
+ return document . readyState === "complete" ;
356
356
}
357
357
358
358
export function message ( cssClass , message ) {
0 commit comments