Fix tweaks not saving

This commit is contained in:
somebody
2022-08-26 21:47:56 -05:00
parent 8e3b258cd5
commit 95473198dd

View File

@@ -2866,7 +2866,8 @@ $(document).ready(function(){
style.id = id;
document.head.appendChild(style);
} else {
document.getElementById(id).remove();
let el = document.getElementById(id);
if (el) el.remove();
}
saveTweaks();