Minor syntax changes
This commit is contained in:
parent
7513e4ea90
commit
eb6e11b2a8
1 changed files with 1 additions and 1 deletions
|
@ -1,5 +1,5 @@
|
||||||
browser.idle.onStateChanged.addListener((state) => {
|
browser.idle.onStateChanged.addListener((state) => {
|
||||||
if (state == 'idle') {
|
if (state === 'idle') {
|
||||||
browser.storage.local.get('days').then((res) => {
|
browser.storage.local.get('days').then((res) => {
|
||||||
var days = parseInt(res.days) || 0;
|
var days = parseInt(res.days) || 0;
|
||||||
if (days !== 0) {
|
if (days !== 0) {
|
||||||
|
|
Loading…
Reference in a new issue