Fixed a bug in reddit options page
This commit is contained in:
parent
edbb327ee6
commit
bbe6fcdef7
|
@ -104,8 +104,6 @@ function redirect(url, initiator, type) {
|
|||
if (initiator && (instancesList.includes(initiator.origin) || targets.includes(initiator.host)))
|
||||
return null;
|
||||
|
||||
|
||||
|
||||
// Do not redirect /accounts, /embeds.js, or anything other than main_frame
|
||||
if (type !== "main_frame" || url.pathname.match(bypassPaths))
|
||||
return 'CANCEL';
|
||||
|
|
|
@ -30,7 +30,10 @@ redditFrontendElement.addEventListener("change",
|
|||
|
||||
redditHelper.init().then(() => {
|
||||
disableRedditElement.checked = !redditHelper.getDisableReddit();
|
||||
redditFrontendElement.value = redditHelper.getRedditFrontend();
|
||||
|
||||
let frontend = redditHelper.getRedditFrontend();
|
||||
redditFrontendElement.value = frontend;
|
||||
changeFrontendsSettings(frontend);
|
||||
|
||||
commonHelper.processDefaultCustomInstances(
|
||||
'libreddit',
|
||||
|
@ -50,5 +53,6 @@ redditHelper.init().then(() => {
|
|||
redditHelper.setTedditRedirectsChecks,
|
||||
redditHelper.getTedditCustomRedirects,
|
||||
redditHelper.setTedditCustomRedirects
|
||||
)
|
||||
);
|
||||
|
||||
})
|
Loading…
Reference in New Issue