From b9cd32cfaa923f965d67f673155e34b9ae4e7d82 Mon Sep 17 00:00:00 2001 From: nitrohorse <1514352+nitrohorse@users.noreply.github.com> Date: Sat, 5 Sep 2020 22:31:15 -0700 Subject: [PATCH] Update variable for consistency --- background.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/background.js b/background.js index 5e896a1..49b99ed 100644 --- a/background.js +++ b/background.js @@ -95,7 +95,7 @@ const oldRedditViews = [ "https://old.reddit.com", // desktop "https://i.reddit.com" // mobile ]; -const redditDefault = oldRedditViews[0]; +const oldRedditDefaultView = oldRedditViews[0]; const googleMapsRegex = /https?:\/\/(((www|maps)\.)?(google\.).*(\/maps)|maps\.(google\.).*)/; const mapCentreRegex = /@(-?\d[0-9.]*),(-?\d[0-9.]*),(\d{1,2})[.z]/; const dataLatLngRegex = /(!3d|!4d)(-?[0-9]{1,10}.[0-9]{1,10})/g; @@ -167,7 +167,7 @@ browser.storage.sync.get( invidiousInstance = result.invidiousInstance; bibliogramInstance = result.bibliogramInstance; osmInstance = result.osmInstance || osmDefault; - oldRedditView = result.oldRedditView || redditDefault; + oldRedditView = result.oldRedditView || oldRedditDefaultView; alwaysProxy = result.alwaysProxy; onlyEmbeddedVideo = result.onlyEmbeddedVideo; videoQuality = result.videoQuality; @@ -198,7 +198,7 @@ browser.storage.onChanged.addListener((changes) => { osmInstance = changes.osmInstance.newValue || osmDefault; } if ("oldRedditView" in changes) { - oldRedditView = changes.oldRedditView.newValue || redditDefault; + oldRedditView = changes.oldRedditView.newValue || oldRedditDefaultView; } if ("disableNitter" in changes) { disableNitter = changes.disableNitter.newValue;