diff options
author | nitrohorse <1514352+nitrohorse@users.noreply.github.com> | 2020-09-05 22:31:15 -0700 |
---|---|---|
committer | nitrohorse <1514352+nitrohorse@users.noreply.github.com> | 2020-09-05 22:31:15 -0700 |
commit | b9cd32cfaa923f965d67f673155e34b9ae4e7d82 (patch) | |
tree | 66fced44c5cd7de4ad6182fba2801bb03c94d0f3 /background.js | |
parent | Update Reddit-related text for consistency, bugfix (diff) | |
download | libredirect-b9cd32cfaa923f965d67f673155e34b9ae4e7d82.zip |
Update variable for consistency
Diffstat (limited to 'background.js')
-rw-r--r-- | background.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/background.js b/background.js index 5e896a13..49b99edb 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; |