diff --git a/js/background.js b/js/background.js index d971960ec..377494dba 100644 --- a/js/background.js +++ b/js/background.js @@ -922,11 +922,11 @@ // Set user's launch count. const prevLaunchCount = window.getSettingValue('launch-count'); - window.launchCount = !prevLaunchCount ? 1 : prevLaunchCount + 1; - window.setSettingValue('launch-count', window.launchCount); + const launchCount = !prevLaunchCount ? 1 : prevLaunchCount + 1; + window.setSettingValue('launch-count', launchCount); // On first launch - if (window.launchCount === 1) { + if (launchCount === 1) { // Initialise default settings window.setSettingValue('hide-menu-bar', true); window.setSettingValue('link-preview-setting', false);