Fixed wrong instances list appearing

This commit is contained in:
ManeraKai 2023-08-31 18:12:33 +03:00
parent 7547533a67
commit 8a509cbfbc
No known key found for this signature in database
GPG Key ID: 5ABC31FFD562E337
2 changed files with 4 additions and 2 deletions

View File

@ -1,7 +1,7 @@
{
"name": "__MSG_extensionName__",
"description": "__MSG_extensionDescription__",
"version": "2.7.1",
"version": "2.8.0",
"manifest_version": 2,
"browser_specific_settings": {
"gecko": {

View File

@ -36,7 +36,7 @@ async function changeFrontendsSettings(service) {
if (
frontend == divs[service].frontend.value
||
(!config.services[service].frontends[divs[service].frontend.value].embeddable && divs[service].embedFrontend && frontend == divs[service].embedFrontend.value)
(config.services[service].frontends[divs[service].frontend.value].desktopApp && divs[service].embedFrontend && frontend == divs[service].embedFrontend.value)
) {
frontendDiv.style.display = ""
if (config.services[service].frontends[frontend].localhost === true) {
@ -82,8 +82,10 @@ async function changeFrontendsSettings(service) {
document.getElementById(`${service}-redirectType`).value = options[service].redirectType
if (config.services[service].frontends[frontend].desktopApp && options[service].redirectType != "main_frame") {
document.getElementById(`${service}-embedFrontend-div`).style.display = ''
document.getElementById(divs[service].embedFrontend.value).style.display = ''
} else {
document.getElementById(`${service}-embedFrontend-div`).style.display = 'none'
document.getElementById(divs[service].embedFrontend.value).style.display = 'none'
}
}
const frontend_name_element = document.getElementById(`${service}_page`).getElementsByClassName("frontend_name")[0]