diff --git a/src/config.jsx b/src/config.jsx index 078aa07..ead9c87 100644 --- a/src/config.jsx +++ b/src/config.jsx @@ -129,7 +129,7 @@ class GeneralConfig extends React.Component { for (const i in ob) { if (!Object.prototype.hasOwnProperty.call(ob, i)) continue; - if ((typeof ob[i]) == 'object') { + if ((typeof ob[i]) === 'object') { const flatObject = flattenObject(ob[i]); for (const x in flatObject) { if (!Object.prototype.hasOwnProperty.call(flatObject, x)) continue; diff --git a/src/player.jsx b/src/player.jsx index 0e2c9ca..ff48419 100644 --- a/src/player.jsx +++ b/src/player.jsx @@ -246,7 +246,7 @@ const PacketBuffer = class { this.reportError("\"" + field + "\" field is missing"); } const value = object[field]; - if (typeof (value) != typeof (type)) { + if (typeof (value) !== typeof (type)) { this.reportError("invalid \"" + field + "\" field type: " + typeof (value)); } return value; diff --git a/src/recordings.jsx b/src/recordings.jsx index 092c0ec..dab95e9 100644 --- a/src/recordings.jsx +++ b/src/recordings.jsx @@ -137,7 +137,7 @@ function LogElement(props) { const cursor = entry.__CURSOR; const entry_timestamp = parseInt(entry.__REALTIME_TIMESTAMP / 1000); - const timeClick = function(_e) { + const timeClick = (_e) => { const ts = entry_timestamp - start; if (ts > 0) { props.onJumpToTs(ts);