1
0
Fork 0

Fix errors reported by ESLint

This commit is contained in:
Krzysztof Sikorski 2021-11-07 23:07:35 +01:00
parent 737541d3da
commit 464a7f976e
Signed by: krzysztof-sikorski
GPG Key ID: 4EB564BD08FE8476
1 changed files with 4 additions and 2 deletions

View File

@ -1,3 +1,5 @@
'use strict'
const getOptionsForm = () => document.getElementById('optionsForm')
const getStorage = () => browser.storage.sync
@ -23,10 +25,10 @@ const initForm = () => {
getStorage().get(null).then(
results => {
if (results.hasOwnProperty('userAccessToken')) {
if (Object.prototype.hasOwnProperty.call(results, 'userAccessToken')) {
optionsForm.elements['userAccessToken'].value = results.userAccessToken
}
if (results.hasOwnProperty('trackerSubmitUrl')) {
if (Object.prototype.hasOwnProperty.call(results, 'trackerSubmitUrl')) {
optionsForm.elements['trackerSubmitUrl'].value = results.trackerSubmitUrl
}
},