This commit is contained in:
ManeraKai 2023-10-25 22:06:20 +03:00
parent 8c3c716d1b
commit e21da3ec14
No known key found for this signature in database
GPG Key ID: 5ABC31FFD562E337
1 changed files with 20 additions and 25 deletions

View File

@ -68,7 +68,7 @@ importSettingsElement.addEventListener("change", () => {
const exportSettingsSync = document.getElementById("export-settings-sync") const exportSettingsSync = document.getElementById("export-settings-sync")
const importSettingsSync = document.getElementById("import-settings-sync") const importSettingsSync = document.getElementById("import-settings-sync")
const importSettingsSyncText = document.getElementById("import_settings_sync_text") const importSettingsSyncText = document.getElementById("import_settings_sync_text")
if (!isChrome) {
exportSettingsSync.addEventListener("click", async () => { exportSettingsSync.addEventListener("click", async () => {
let options = await utils.getOptions() let options = await utils.getOptions()
options.version = browser.runtime.getManifest().version options.version = browser.runtime.getManifest().version
@ -91,11 +91,6 @@ if (!isChrome) {
} }
}) })
}) })
} else {
exportSettingsSync.style.display = 'none'
importSettingsSync.style.display = 'none'
}
const resetSettings = document.getElementById("reset-settings") const resetSettings = document.getElementById("reset-settings")
resetSettings.addEventListener("click", async () => { resetSettings.addEventListener("click", async () => {