Skip to content

Commit f922248

Browse files
committed
[LINT] Always with the lint failures
1 parent 2548b88 commit f922248

File tree

1 file changed

+19
-8
lines changed

1 file changed

+19
-8
lines changed

web_refresher/static/src/js/refresher.esm.js

Lines changed: 19 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -71,12 +71,14 @@ export class Refresher extends Component {
7171
let returnInterval = -1;
7272
let returnText = "Off";
7373
if (Object.hasOwn(refreshSettings, lookupKey)) {
74-
const {refreshInterval=-1, intervalText="Off"} = refreshSettings[lookupKey];
74+
const {refreshInterval = -1, intervalText = "Off"} =
75+
refreshSettings[lookupKey];
7576
returnInterval = parseInt(refreshInterval ?? -1)
7677
returnText = intervalText;
7778
} else if (Object.hasOwn(refreshSettings, this.refreshDefaultSettingsKey)) {
78-
const {refreshInterval=-1, intervalText="Off"} = refreshSettings[this.refreshDefaultSettingsKey];
79-
returnInterval = parseInt(refreshInterval ?? -1)
79+
const {refreshInterval = -1, intervalText = "Off"} =
80+
refreshSettings[this.refreshDefaultSettingsKey];
81+
returnInterval = parseInt(refreshInterval ?? -1);
8082
returnText = intervalText;
8183
}
8284
return {refreshInterval: returnInterval, intervalText: returnText};
@@ -158,9 +160,15 @@ export class Refresher extends Component {
158160
_isRefreshIntervalDefault() {
159161
const localStoredIntervals = this._getLocalStorageValue();
160162

161-
if (Object.hasOwn(localStoredIntervals, this.refreshDefaultSettingsKey)
162-
&& Object.hasOwn(localStoredIntervals[this.refreshDefaultSettingsKey], 'refreshInterval')
163-
&& this.refreshInterval === localStoredIntervals[this.refreshDefaultSettingsKey].refreshInterval) {
163+
if (
164+
Object.hasOwn(localStoredIntervals, this.refreshDefaultSettingsKey) &&
165+
Object.hasOwn(
166+
localStoredIntervals[this.refreshDefaultSettingsKey],
167+
"refreshInterval"
168+
) &&
169+
this.refreshInterval ===
170+
localStoredIntervals[this.refreshDefaultSettingsKey].refreshInterval
171+
) {
164172
return true;
165173
}
166174
return false;
@@ -180,9 +188,12 @@ export class Refresher extends Component {
180188
setRefreshAsDefault() {
181189
this._setLocalStorageValue(this.refreshDefaultSettingsKey, {
182190
refreshInterval: this.refreshInterval,
183-
intervalText: document.getElementById("auto-refresh-interval-text").textContent,
191+
intervalText: document.getElementById("auto-refresh-interval-text")
192+
.textContent,
184193
});
185-
this._setIntervalUi(document.getElementById("auto-refresh-interval-text").textContent);
194+
this._setIntervalUi(
195+
document.getElementById("auto-refresh-interval-text").textContent
196+
);
186197
}
187198

188199
onChangeAutoRefreshInterval(clickedOption) {

0 commit comments

Comments
 (0)