Update variable for consistency
This commit is contained in:
parent
2603e7a9ea
commit
b9cd32cfaa
|
@ -95,7 +95,7 @@ const oldRedditViews = [
|
||||||
"https://old.reddit.com", // desktop
|
"https://old.reddit.com", // desktop
|
||||||
"https://i.reddit.com" // mobile
|
"https://i.reddit.com" // mobile
|
||||||
];
|
];
|
||||||
const redditDefault = oldRedditViews[0];
|
const oldRedditDefaultView = oldRedditViews[0];
|
||||||
const googleMapsRegex = /https?:\/\/(((www|maps)\.)?(google\.).*(\/maps)|maps\.(google\.).*)/;
|
const googleMapsRegex = /https?:\/\/(((www|maps)\.)?(google\.).*(\/maps)|maps\.(google\.).*)/;
|
||||||
const mapCentreRegex = /@(-?\d[0-9.]*),(-?\d[0-9.]*),(\d{1,2})[.z]/;
|
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;
|
const dataLatLngRegex = /(!3d|!4d)(-?[0-9]{1,10}.[0-9]{1,10})/g;
|
||||||
|
@ -167,7 +167,7 @@ browser.storage.sync.get(
|
||||||
invidiousInstance = result.invidiousInstance;
|
invidiousInstance = result.invidiousInstance;
|
||||||
bibliogramInstance = result.bibliogramInstance;
|
bibliogramInstance = result.bibliogramInstance;
|
||||||
osmInstance = result.osmInstance || osmDefault;
|
osmInstance = result.osmInstance || osmDefault;
|
||||||
oldRedditView = result.oldRedditView || redditDefault;
|
oldRedditView = result.oldRedditView || oldRedditDefaultView;
|
||||||
alwaysProxy = result.alwaysProxy;
|
alwaysProxy = result.alwaysProxy;
|
||||||
onlyEmbeddedVideo = result.onlyEmbeddedVideo;
|
onlyEmbeddedVideo = result.onlyEmbeddedVideo;
|
||||||
videoQuality = result.videoQuality;
|
videoQuality = result.videoQuality;
|
||||||
|
@ -198,7 +198,7 @@ browser.storage.onChanged.addListener((changes) => {
|
||||||
osmInstance = changes.osmInstance.newValue || osmDefault;
|
osmInstance = changes.osmInstance.newValue || osmDefault;
|
||||||
}
|
}
|
||||||
if ("oldRedditView" in changes) {
|
if ("oldRedditView" in changes) {
|
||||||
oldRedditView = changes.oldRedditView.newValue || redditDefault;
|
oldRedditView = changes.oldRedditView.newValue || oldRedditDefaultView;
|
||||||
}
|
}
|
||||||
if ("disableNitter" in changes) {
|
if ("disableNitter" in changes) {
|
||||||
disableNitter = changes.disableNitter.newValue;
|
disableNitter = changes.disableNitter.newValue;
|
||||||
|
|
Loading…
Reference in New Issue